PDA

View Full Version : QGroupBox not showing border box



novackb
3rd June 2015, 18:14
I just upgraded a small GUI from Qt4.8 to Qt5.4. The GUI has three different group boxes arranged horizontally. The group box title and all child content is there and functions properly, but the group box border/box no longer displays. I've tried setting different properties to change fore/background colors and adjust padding to no avail. I haven't found a set function to adjust border width. Something obviously changed from Qt4 to Qt5, but I'm at a loss.

Here is the code for the creation of one of the group boxes.

QGroupBox *processStatusGroup = new QGroupBox(tr("Process Status"), this);
processStatusGroup->setLayout(processStatusLayout);
processStatusGroup->setSizePolicy(QSizePolicy(processStatusGroup->sizePolicy().horizontalPolicy(), QSizePolicy::Fixed));

I'm compiling and running on CentOS6.

Any ideas?

anda_skoa
4th June 2015, 11:06
Have you tried with a different widget style? I.e. checked that it is not just the style not drawing borders?

In any case, a buildable example that shows the problem would help a lot.

Cheers,
_