PDA

View Full Version : Finding menuBar actions



maverick_pol
9th April 2008, 12:20
Hi guys,

I am currently trying to write a piece of code that would go through all menubar actions(menus if present) and check if any action has an icon and then change that icon to other.
Anyone done something similar?

Thanks,

Kacper

P.S.

I think I have a good idea. As fast as I have the code I will paste it here.

jpn
9th April 2008, 22:23
Use QObject::findChildren() and QWidget::actions()?

maverick_pol
10th April 2008, 01:14
Yes,

Thanks, I have done what I needed: I get menuBar menus and go through all menus' actions checking if any action contains an icon and if an action points to another inner menu and again check actions icons and so on...

Thanks..
Kacper