Results 1 to 3 of 3

Thread: QGridLayout problem

  1. #1
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QGridLayout problem

    I'm trying to set a VerticalLayout inside a QGridLayout, inside the vertical layout i have set some QCheckBox, but i cant check them when runing the program... i've tried them like radio buttons and checkbox....

    The main layout is created in other function, but the other elements on it work fine.
    Qt Code:
    1. radio1=new QCheckBox("Foto",this);
    2. radio2=new QCheckBox("Ráfaga",this);
    3. radio3=new QCheckBox("Video",this);
    4.  
    5. QBoxLayout* panelVerticalBotones=new QVBoxLayout;
    6. panelVerticalBotones->addWidget(radio1, Qt::AlignTop);
    7. panelVerticalBotones->addWidget(radio2);
    8. panelVerticalBotones->addWidget(radio3);
    9. panelVerticalBotones->addStretch();
    10. mainLayout->addLayout(panelVerticalBotones,2,3);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGridLayout problem

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGridLayout problem

    sorry, i found it!! i was setting 2 elements on the same place :P

Similar Threads

  1. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 12:05
  2. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  3. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

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.