Translations:Development/Tutorials/Using Qt Creator/19/en

To add a toolbar, right-click on the UI and choose "Add Toolbar". Then you can set icons and text in your mainwindow's constructor with code like this:

ui->toolBar->addAction(QIcon("/usr/share/icons/oxygen/22x22/apps/ktip.png"),"hello world");

More Info...


This page was last edited on 11 March 2016, at 10:30. Content is available under Creative Commons License SA 4.0 unless otherwise noted.