PDA

View Full Version : QAction without check state



pardas
4th August 2012, 17:55
Hi,

When I create QActions to put in a QToolBar i want to disable the check and hover mode but I can´t. Is there anyway to do it? Thank you very much. Here is my code:





this->action = new QAction(this);
this->action->setIcon(QIcon("images/inicio.png"));
this->action->setCheckable(false);
connect(this->action , SIGNAL(triggered()), this, SLOT(actionMethod()));
toolbar->addAction(this->action);



Rewards.

ChrisW67
5th August 2012, 01:45
... and what is not working?

pardas
5th August 2012, 11:53
That when I push the action it gets checked...instead of putting this attribute to false I have to put any attribute when I create the QToolbar...