Results 1 to 2 of 2

Thread: Store the filename of QIcon

  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Store the filename of QIcon

    I need to store the information about the icons, I have selected and displayed on the screen from a table (QTableWidget) of Icons.

    Can I get the file name when I select an icon in the table cell?

    or could u suggest any way ....


    Thanking you in advance
    Nithya
    "A fool can ask More questions that a wise man cannot answer"
    /home/nithyanair/Pics/image.jpg

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Store the filename of QIcon

    Store the icon path in a custom role of the item using QTableWidgetItem::setData().

Similar Threads

  1. Make error with Qt Jambi 4.3.2_01
    By pamalite in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd November 2007, 13:05

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.