Frage

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)

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top