Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived Talk:How to use QListWidget and QListWidgetItem

From Wiki
Jump to: navigation, search
13 Sep

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.



hamishwillee 05:48, 17 November 2011 (EET)

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