Results 1 to 2 of 2

Thread: Resizing a QTreeWidgetItem with a widget inside

  1. #1
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Resizing a QTreeWidgetItem with a widget inside

    Hello there!!

    I have an application that has a lot of infos...
    It's organized in levels.

    I'm constructing a tree with QTreeWidget, with parent and child items and for each item I put a widget at the second column.
    Everything is right, except when I try to resize the row/widget, once I want to expand that widget.

    I searched in forum and in Google, but nothing...

    I want widget to grows in height, so I can show the extra info, but I need to shrink it back, when the user don't want it anymore....

    How can I do this?

    Thanks in advance

  2. #2
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Resizing a QTreeWidgetItem with a widget inside

    Iha!!

    Done:
    encolhido.png

    expandido.png

    By clicking on the same "tab", it shrink.

Similar Threads

  1. Replies: 8
    Last Post: 28th June 2011, 14:57
  2. Resizing QGraphicsView inside a QGridLayout
    By mckinnon in forum Newbie
    Replies: 3
    Last Post: 9th September 2010, 10:15
  3. Resizing QTableView inside a QTabWidget
    By Aslan in forum Newbie
    Replies: 2
    Last Post: 29th May 2010, 14:50
  4. resizing widget inside QScrollArea
    By mastupristi in forum Newbie
    Replies: 4
    Last Post: 16th July 2009, 19:29
  5. Resizing a QTreeWidget inside a layout
    By bruccutler in forum Qt Programming
    Replies: 11
    Last Post: 27th March 2007, 15:35

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.