QGroupBox title alignment
-
Hi, My QGrouBox Text is not aligned Properly. it is aligned to be Bottom, instead of Center or VCenter or Top.
it is not responding to setAlignment(Qt::Center) statements.
Please help me in resolving this issue.
gbxMsg2_1 = new QGroupBox("MESSAGE: 02", this); gbxMsg2_1->setFont(QFont("Arial", 10, QFont::Bold)); gbxMsg2_1->setStyleSheet("QGroupBox {border-style: solid; border-width: 2;}"); gbxMsg2_1->setAlignment(Qt::AlignTop); gbxMsg2_1->setLayout(vbxMsg2_1); gbxMsg2_1->setGeometry(20, 680, 1000, 300);Regards,
Dan