View Full Version : Get List of Toolbars in QMainWindow
mbrusati
10th October 2008, 15:35
Is there an equivalent function to QToolBar::actions() that would return a list of the toolbars in a QMainWindow? I don't see one in the 4.3 docs.
maverick_pol
10th October 2008, 15:54
Hi,
Just an idea:
QList<QToolBar *> toolbars = mainWindow.findChildren<QToolBar *>("");
Kacper
mbrusati
10th October 2008, 18:19
Yes, that should work, though I don't think the quotes are necessary. Thank you very much.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.