Results 1 to 5 of 5

Thread: Problems putting layouts inside groupbox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    17
    Thanks
    4

    Default Re: Problems putting layouts inside groupbox

    There is parent layout and it is called mainLayout. I think problem is here:
    spinsLayout = new QVBoxLayout(spinsBox);
    buttonsLayout = new QHBoxLayout(buttonsBox);

    here I create layouts with qgroupbox as a parent. I receive warnigns that tells me that qgroupbox already has a layout. But what if I want to put some layout (with some objects in order inside it) inside a groupbox. Please help.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 27 Times in 27 Posts

    Default Re: Problems putting layouts inside groupbox

    Quote Originally Posted by conexion2000
    There is parent layout and it is called mainLayout. I think problem is here:
    actually its not main layout . Under main layout i mean form layout that will be parent for your layouts. But i also think that problem ist no here.

    Quote Originally Posted by conexion2000
    I receive warnigns that tells me that qgroupbox already has a layout. But what if I want to put some layout (with some objects in order inside it) inside a groupbox. Please help.
    Listen your warnings
    I think its the same if you add objects in group box without layout.
    Play arround it.
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Mar 2006
    Posts
    17
    Thanks
    4

    Default Re: Problems putting layouts inside groupbox

    But the problem is that I want to put some group of widgets horizontally, then these group vertically. If I do that using QGroupBox I will have 4 outlined boxes not 1.

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
  •  
Qt is a trademark of The Qt Company.