Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
4.4.0
-
None
Description
Situation: one needs to decline the pop-up mode of the tool button, but setMenu(0) and setArrowType(Qt::NoArrow) do not hide the arrow, and there is no appropriate facility. It would be nice to add to the enum ToolButtonPopupMode an entry like ToolButtonPopupMode::NoPopup to remove the popup arrow.
Code to reproduce:
#include <QtGui> int main( int argc, char * argv[] ) { QApplication app( argc, argv ); QToolButton * toolButton = new QToolButton; toolButton->setPopupMode( QToolButton::MenuButtonPopup ); // NONE OF THESE MAKES THE ARROW HIDDEN FROM NOW ON toolButton->setMenu( 0 ); toolButton->setArrowType( Qt::NoArrow ); toolButton->show(); return app.exec(); }