QToolButton* button = new QToolButton(parent); button->setAutoRaise(true);
QToolButton* button = new QToolButton(parent); button->setAutoRaise(false);This code creates a new QToolButton and sets the autoRaise property to false. Package library: The QToolButton is a part of the Qt GUI toolkit, which is a cross-platform application development framework. The Qt framework is a widely used package library in C++ programming.