Results 1 to 2 of 2

Thread: QxtGroupBox: arrange the size of the boxes when expanded

  1. #1
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QxtGroupBox: arrange the size of the boxes when expanded

    Hi,
    I am having troubles with the expanded size of the QxtGroupBox.
    I have 1 QVBoxLayOut with 2 QxtGroupBoxes.
    Which function should I use in order to arrange the size of the QxtGroupBoxes when both are expanded? Now, one of the QxtGroupBox get 80% of the screen!
    It seems that the size of each of the QxtGroupBoxes depends on the widget that are in them!
    Any suggestions?

  2. #2
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QxtGroupBox: arrange the size of the boxes when expanded

    I suppose that the problem itself has nothing to do with the QxtGroupBox, it is exactly the same even if I use QGroupBox.
    If I have 2 empty QGroupBoxes in the QVBoxLayOut, they share the space 50%-50%.
    Some widget make the QGroupBoxes to take more space even if they don't really need them.

    For example, if I put a QPushBotton in each of the QGroupBoxes, each QGroupBox will take 50% of the space as I mentioned already. BUT If insert a QStandardItemModel (with just one row) the corresponding QGroupBox will take something like 70%(even if it does not need it!), whereas if I insert a QWebView then the QGroupBox that contains it will take almost 90% of the space squizzing the other QGroupBox and its widget to a tiny 10%!!!

    Obviously there is something that I haven't understood with QGroupBox or QVBoxLayOut..any help please??

Similar Threads

  1. Display QTreeView expanded in QDialog
    By LynneV in forum Qt Programming
    Replies: 3
    Last Post: 21st December 2010, 20:32
  2. How to arrange panes
    By Asperamanca in forum Qt Tools
    Replies: 3
    Last Post: 23rd October 2009, 08:50
  3. About QTreeVew's expanded() signal
    By yangyunzhao in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2009, 03:32
  4. QComboBox that stays expanded
    By jma in forum Qt Programming
    Replies: 2
    Last Post: 21st January 2009, 07:50
  5. Qt 4 expanded mask
    By bunjee in forum Qt Programming
    Replies: 4
    Last Post: 7th May 2008, 14:21

Tags for this Thread

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.