×
Namespaces

Variants
Actions

Archived Talk:How to use QListWidget and QListWidgetItem

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}
13 Sep
2009

Naufalahad - Reg: Icon View

Hi all,

I am having a problem with QIcon list view,where in the above screen example they have added the image to the list widget,but when i declare an item1 in that coding i am not able to get the solution.

list=new QListWidget();
item1=new QListWidgetItem(QIcon("D:\\Blue hills.PNG"),"BlueHills",list);
item2=new QListWidgetItem(QIcon("D:\\Sunset.PNG"),"Sunset",list);
item3=new QListWidgetItem(QIcon("D:\\Water lilies.PNG"),"Water lilies",list);
item4=new QListWidgetItem(QIcon("D:\\Winter.PNG"),"Winter",list);

I am getting the error as :

error: incomplete universal character name \U
Thanks and regards if any one find me a solution!!!!

naufalahad 15:17, 10 November 2011 (EET)

Hamishwillee - @Naufalahad - try forums

Hi Naufalahad

This article was written by Mind_freak a few years ago, and he might not be watching it. Suggest you either message directly through private messaging (hover over his name in the ArticleMetaData on top right of page) or ask question in the forums.

Looking at your error I'd say its probably nothing to do with this segment of code. This might be caused by an ill formed unicode character somewhere.

regards

Hamish

hamishwillee 05:48, 17 November 2011 (EET)

This page was last modified on 28 June 2012, at 06:35.
10 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×