1

Suppose i have a QFrame, I have 3 categories widgets in my Frame, Such as :CheckBoxes , Buttons and texts.

My questions is , How put every category in a rectangle ? (i didn't found in qt-designer)

5
  • What about putting each category into a separate widget?
    – headsvk
    Sep 14, 2013 at 7:21
  • not separate widget, but only in rectangle. Sep 14, 2013 at 8:10
  • Well I don't know about that, why is it a problem for you tu add the widgets into your window instead of all the items separately? My app using white widgets grouping other elements dl.dropboxusercontent.com/u/108649284/screen.png
    – headsvk
    Sep 14, 2013 at 9:33
  • Composite widgets in docs qt-project.org/doc/qt-5.0/qtwidgets/…
    – headsvk
    Sep 14, 2013 at 9:39
  • or you can use QFrame instead of plain QWidget, should be simpler to style the border (frame)
    – headsvk
    Sep 17, 2013 at 10:31

1 Answer 1

1

In Qt-Designer you can simply put QGroupBox widgets in your QFrame widget (in your case 3 QGroupBox), and then arrange all your widgets (CheckBoxes , Buttons and texts) in that 3 QGroupBox widgets. QGroupBox is rectangle and you can set name (title) of group box also in Qt-Designer if you need it. I am using PyQt 4.7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.