QToolButton and InstantPopup mode icon issue (large black down arrow across entire icon face)
Solved
General and Desktop
-
Hello,
I have a toolbar, to which I add a QToolButton to show a menu. Prior to Qt 6.2.3, this used to display the tiny arrow menu indicator in the bottom right corner of the button. I think Qt 6.2.3 either introduced a bug or some setting that needs to be specified. Now, there is a large down arrow being displayed like this on top of the whole icon. Both DelayedPopup and InstantPopup show this problem :But MenuButtonPopup seems to work correctly:
.This is a code snippet to recreate the problem:
QToolButton* button = new QToolButton(); button->setPopupMode(QToolButton::InstantPopup); QMenu* menu = new QMenu(); button->setMenu(menu); button->setIcon(QIcon(":/stop.png")); menu->addAction("test1"); toolbar->addWidget(button);
I can't seem to fix with stylesheets or with any other settings. Is this a bug? Anybody have suggestions that can fix this problem?
Thanks
-
Hi John,
indeed, this is a bug. See here for details and fixed Qt versions.
Brgds
Axel