#include int main(int argc, char *argv[]) { //QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // Issue with and without High DPI QApplication app(argc, argv); app.setStyleSheet("QWidget { font-size : 24pt }"); // Not needed, but worsens the problem. QWidget window; QHBoxLayout *layout = new QHBoxLayout(&window); QString t = "This simple control has a long text to ensure a long length to trigger the problem."; layout->addWidget(new QLabel(t)); // QPushButton also shows the problem layout->setSizeConstraint(QLayout::SetFixedSize); window.show(); app.exec(); }