Results 1 to 2 of 2

Thread: QTableWidgetItem

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    176
    Qt products
    Qt4
    Platforms
    Windows

    Default QTableWidgetItem

    Hi,Every one.
    I want to put an icon and text together into QTableWidget.
    I find that
    Qt Code:
    1. QTableWidgetItem ( const QIcon & icon, const QString & text, int type = Type )
    To copy to clipboard, switch view to plain text mode 
    can do it.
    But I want to put the icon on the right of the text,and what the upper code done is putting the icon on the left of the text.
    How to do?
    Thk u.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QTableWidgetItem

    I don't think you can do this, you may need to have custom widget set as cell widget.

Similar Threads

  1. QTableWidgetItem
    By weixj2003ld in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2011, 08:59
  2. QTableWidgetItem for a QTableWidget
    By Archa4 in forum Newbie
    Replies: 1
    Last Post: 28th April 2011, 12:11
  3. How to subclass QTableWidgetItem
    By codemonkey in forum Qt Programming
    Replies: 4
    Last Post: 4th October 2009, 12:11
  4. QTableWidgetItem not selectable
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 14th February 2008, 19:15
  5. Tooltips in QTableWidgetItem
    By Arthur in forum Newbie
    Replies: 2
    Last Post: 26th January 2006, 16:47

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.