Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, April 2008
How to get all QActions on QToolBar ?


Message 1 in thread

Hi,

How to get a list of all QActions on QToolBar ?

Many thanks,
Vladimir

--
 [ signature omitted ] 

Message 2 in thread

Hi

I think so:

QList<QAction *> actions = yourToolBar.findChildren<QAction*>();

-- 
 [ signature omitted ] 

Message 3 in thread

Konstantin Wirz wrote:
> Hi
>
> I think so:
>
> QList<QAction *> actions = yourToolBar.findChildren<QAction*>();
>
May be that:

QList<QAction *> QWidget::actions () const

--
 [ signature omitted ]