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)

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top