Results 1 to 2 of 2

Thread: QTreeWidget Issue

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QTreeWidget Issue

    Hi All,

    I m using Qt4.2.2 on my Intel Mac.

    I m using a QTreeWidget in my project.

    1. I have enabled the Sorting Enabled and when I insert the Item in the TreeWidget it is showing Item in Desending Order but I want them to Display in the Assending Order.

    2. I want to Increase the Row height of the TreeWidget.


    If any one know that plz tell me.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeWidget Issue

    Quote Originally Posted by vishal.chauhan View Post
    1. I have enabled the Sorting Enabled and when I insert the Item in the TreeWidget it is showing Item in Desending Order but I want them to Display in the Assending Order.
    QTreeWidget::sortItems(int column, Qt::SortOrder order)
    Quote Originally Posted by vishal.chauhan View Post
    2. I want to Increase the Row height of the TreeWidget.
    Set sufficient size hints for items via QTreeWidgetItem::setSizeHint(int column, const QSize& size) or override QAbstractItemView::sizeHintForRow(int row).
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    vishal.chauhan (13th February 2007)

Similar Threads

  1. Removing items properly from qtreewidget item
    By Djony in forum Qt Programming
    Replies: 6
    Last Post: 21st November 2006, 12:20
  2. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32
  3. Replies: 1
    Last Post: 21st September 2006, 10:37
  4. QTreeWidget & QListWidget different selection
    By munna in forum Qt Programming
    Replies: 9
    Last Post: 21st July 2006, 06:50
  5. few questions related to QTreeWidget
    By prakash in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2006, 07:32

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.