Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.11.0
-
windows 10
Description
If Ui file is used in little example of adding tab to tabwidget in a layout, and if windows has magnified view of 200% some text gets clipped.
strangely with little manual modification of uic generated .h file works i.e. if tab has been parented to tab widget in uic generated .h file right after tab creation it works.
But the default parenting which is done after say 10 lines of code shows problem.
Attached example shows it.
Steps:
In Windows 10 open ease of access and then set magnifier to 200%
Run the attach example and see groupbox text is clipped.
Open the ui_wiget.h file and cut paste tabWidget->addTab(tab, QString()); right after tab creation and then run again, this works
tabWidget = new QTabWidget(Widget); tabWidget->setObjectName(QStringLiteral("tabWidget")); tab = new QWidget(); tab->setObjectName(QStringLiteral("tab")); bla bla bla ..... tabWidget->addTab(tab, QString()); // CUT THIS LINE AND PASTE after tab = new QWidget(); horizontalLayout->addWidget(tabWidget);