Get the actions from a toolbar
Hi,
I'd like to enable or disable some actions in the toolbar in execution time.
In order to do that, I saw that QToolBar just let us get the actions if I use a function with the position of the action... it doesn't seem to be what I'm looking for so I saw it obtains a list with all the actions with "actions()" (from QWidget), cool.
But when I call the function it doesn't send me back anything.
It's that the proper way to access to the actions in a qtoolbar? do I have any other way?
thanks!
Re: Get the actions from a toolbar
How did you place them in the toolbar?
Re: Get the actions from a toolbar
adding them from the actions window in the Visual Studio integrator.
Yep, you are right, thanks to that I realized I can access to the actions directly from the ui object. They aren't implemented inside the toolbar, they are as widgets.
Re: Get the actions from a toolbar
Quote:
Originally Posted by
jano_alex_es
Yep, you are right, thanks to that I realized I can access to the actions directly from the ui object.
Exactly :)