A stange problem in QGroupBox
Unsolved
General and Desktop
-
// mainwindow.cpp QWidget* widget = new QWidget; QComboBox* box = new QComboBox; box->addItem("a"); box->addItem("b"); box->addItem("c"); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(box); widget->setLayout(layout); setCentralWidget(widget);
// main.cpp qApp->setStyleSheet("QWidget{font-family: 'Microsoft YaHei UI'; font-size: 15px;}" "QComboBox{font-size: 13px;}");
You just create a new widget project, and add the upper codes, you will get the following result,
The items in groupbox overlaped with each other.
Why is that? Could someone tell me the WHY and HOW? Thanks in advance.
(PS: windows10 + qt 5.10.1 + qt-creator 4.5.1 + msvc2015 x86)