How can i hide a QAction in the QToolbar?
-
wrote on 10 Jul 2015, 15:48 last edited by
Hello,
how can hide one QAction in a QToolbar? I will hide one Button from two.
I hope someone have a good answer.
Sorry for my worst englisch.Bye
Alex from Germany ;-)
-
Hello,
how can hide one QAction in a QToolbar? I will hide one Button from two.
I hope someone have a good answer.
Sorry for my worst englisch.Bye
Alex from Germany ;-)
wrote on 10 Jul 2015, 16:13 last edited bysetVisible can be applied to QAction in the toolbar.
-
wrote on 10 Jul 2015, 16:27 last edited by
Hello,
thanks for the answer.
When i write this code:ui->toolBar->setVisible(false);
The completly toolBar is hide.
When i will the first button hide, i write this:
ui->toolBar->actions().at(index)->setVisible(false);
Thank you ;-)
Bye
Alex from Germany
1/4