Results 1 to 2 of 2

Thread: Item of qtreewidget opened and String in Column adjusted in QT4??

  1. #1
    Join Date
    Mar 2006
    Posts
    47
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Item of qtreewidget opened and String in Column adjusted in QT4??

    Hi,
    I am new to QT4 and I want to show items of qtreewidget be opened when the tree displayed ,earlier i am working with qt3 and using
    item->setopen(TRUE);

    Following are my problems:-

    (1) which will be used in qt4 to show items as opened when tree displayed.
    (2) How i can adjust column size of QTreeWidget in QT Designer or through coding,so that when i scroll the items appears in column adjusted according to their string size.
    (3) How I can show Horizontal scroll bar added to qtreewidget.

    Thanks and Regards

  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: Item of qtreewidget opened and String in Column adjusted in QT4??

    Quote Originally Posted by darpan View Post
    (1) which will be used in qt4 to show items as opened when tree displayed.


    (2) How i can adjust column size of QTreeWidget in QT Designer or through coding,so that when i scroll the items appears in column adjusted according to their string size.
    QHeaderView provides a bunch of methods for resizing sections, setting their resize modes, and properties like whether the last column is stretched or not and so on.. It is accessible through QTreeView::header().

    (3) How I can show Horizontal scroll bar added to qtreewidget.
    QAbstractScrollArea::setHorizontalScrollBarPolicy( )
    J-P Nurmi

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.