Results 1 to 8 of 8

Thread: Can i change QTreeWidget to a icon mode like QListWidget??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    7
    Thanks
    3

    Red face Can i change QTreeWidget to a icon mode like QListWidget??

    I want to create a QTreeWidget or qlistview or qlistwidget, that can show some date as a list that have columns and can let the user clicke a button to change the style as a icon mode.
    Qt Code:
    1. listWidget->insertItem(0, new QListWidgetItem(
    2. QIcon("copy.png"), "caterpillar"));
    3. listWidget->addItem("name");
    4. listWidget->setViewMode(QListView::IconMode);
    To copy to clipboard, switch view to plain text mode 
    but listwidget i don't kwon how to add columns

    treewidget i can add columns, but i can change list mode to icon mode

    please help me! thank so much!
    Last edited by The_hero; 29th May 2009 at 14:47. Reason: missing [code] tags

Similar Threads

  1. QListwidget Icon
    By jasplye in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2008, 09:17
  2. Replies: 2
    Last Post: 12th October 2008, 14:42
  3. how to sync a QTreeWidget and a QListWidget?
    By zl2k in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2008, 20:55
  4. QListWidget in ListMode - still has icon space
    By high_flyer in forum Newbie
    Replies: 10
    Last Post: 30th March 2007, 19:43
  5. QTreeWidget & QListWidget different selection
    By munna in forum Qt Programming
    Replies: 9
    Last Post: 21st July 2006, 06:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.