Results 1 to 2 of 2

Thread: Query regarding QICon and QPushButton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Query regarding QICon and QPushButton

    hi ,

    I am creating a TreeWidget. I want 4 columns in that , where one column has the icon which is a QIcon datatype and the 4th column is a pushbutton . Just wanted to know if i can add them in the tree widget .

    If yes then a sample pusedo code will surely help .

    Thanks in advance!!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Query regarding QICon and QPushButton

    You can. See QTreeWidget::setItemWidget(). Or write you own delegate for the two columns.

Similar Threads

  1. Qicon
    By shihao in forum Qt Programming
    Replies: 11
    Last Post: 15th March 2010, 13:23
  2. Replies: 0
    Last Post: 22nd February 2010, 09:30
  3. How to resize the QIcon inside QPushButton dynamically?
    By gboelter in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2010, 12:34
  4. Replies: 3
    Last Post: 26th September 2006, 12:16
  5. Replies: 2
    Last Post: 31st May 2006, 21:52

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
  •  
Qt is a trademark of The Qt Company.