Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.1, 5.7.0, 5.12.0
-
None
-
Tested on KUbuntu Qt 5.6.1 and KDE Neon, Qt 5.7
OpenSUSE Tumbleweed, Qt 5.12
-
-
ba13c6c08f30a4c2f188f69deeaf4ca6a020d7a1 (qt/qtbase/5.12)
Description
Add a QLineEdit in a QToolbar, and enable the clear button of the lineedit.
Now resize the window so that the lineedit is very small (see attached picture), CPU usage goes up to 11%.
Sample code:
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QToolBar *toolb = new QToolBar(this); addToolBar(toolb); QLabel *lab = new QLabel("Sample text using space to easily resize lineedit"); toolb->addWidget(lab); QLineEdit *srch = new QLineEdit(this); srch->setClearButtonEnabled(true); toolb->addWidget(srch); }