Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.5.1
-
eb786d600cf0b994089dacd7e2ed9a02b1ac0552 (qtbase/5.6, 22.4.2016,5.6.1)
Description
Bug can be reproduced with Qt's Basiclayouts example (Examples\Qt-5.5\widgets\layouts\basiclayouts).
QGroupBox is created on dialog.cpp Dialog::createFormGroupBox(). If you add an alignment it works ok (=group box title is placed on basis of the alignment) with the default style but not with the fusion style.
void Dialog::createFormGroupBox() { formGroupBox = new QGroupBox(tr("Form layout")); // Added alignment; works with the default style but not with fusion style formGroupBox->setAlignment( Qt::AlignHCenter );
Fusion style can be set on main.cpp:
int main(int argc, char *argv[]) { QApplication app(argc, argv); // added the fusion style: QApplication::setStyle(QStyleFactory::create("Fusion"));
Attachments
For Gerrit Dashboard: QTBUG-49068 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
139953,4 | Fusion style: Observe text alignment of QGroupBox. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |