https://bugs.kde.org/show_bug.cgi?id=365050
Bug ID: 365050 Summary: KToolBar constant repaint when a QToolButton is added in it Product: frameworks-kxmlgui Version: 5.23.0 Platform: Ubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kdelibs-b...@kde.org Reporter: j...@kdenlive.org While investigating a major CPU usage in Kdenlive, I could trace it to KToolBar. Adding a QToolButton in a KToolBar causes a constant repaint of the toolbutton with a big CPU consumption (1-2% for just one toolbutton). The same code with a QToolBar works correctly. Reproducible: Always Steps to Reproduce: This sample code can reproduce the issue: QToolButton *button = new QToolButton(); QAction *ac = new QAction(QString("test"), this); button->setDefaultAction(ac); KToolBar *tb = new KToolBar(this); addToolBar(tb); ktb->addWidget(button); Actual Results: You can visualize the problem using KWin's "Show Paint" Desktop Effect which shows the toolbutton is contantly repainted, and CPU usage also goes up (1-2% on my Core i7) whenever the app window is active. Expected Results: No useless repaint / CPU waste. Replacing KToolBar with QToolBar fixes the problem. Also tested against latest 5.24 Frameworks -- You are receiving this mail because: You are watching all bug changes.