PDA

View Full Version : Custom Toolbar



JimBrown
13th December 2007, 21:52
Hi,

I've been asked to extend a legacy Qt 3.2 app by adding a toolbar with six buttons having text labels. I think that I want to use a QToolbar having a QButtonGroup containing the QToolButtons. Before I spend a lot of time looking for how to implement this (the Qt documentation shows how to implement standard toolbars with actions (not buttons) like fileOpenAction, but nothing I saw was close to what I want to do), I thought that I'd ask this forum if I'm on the right track with my design idea.

All comments are appreciated.

Thank you,
Jim Brown

jacek
13th December 2007, 23:19
What's wrong with QActions? Anyway you can create widgets on the QToolbar just by setting the toolbar as their parent.

JimBrown
13th December 2007, 23:55
What's wrong with QActions? Anyway you can create widgets on the QToolbar just by setting the toolbar as their parent.

Thanks for the reply. I used QActions in a QActionGroup as a test, but I can't get them to display the text label instead of an icon. Do you know of a way?

jpn
14th December 2007, 09:29
QMainWindow::usesTextLabel