Qt-interest Archive, December 2006
[qt 4.2.2] QToolBar: icon + text = icon
Message 1 in thread
Hi,
when creating an action with both icon and text ...
QAction* action = new QAction(QIcon(":/xyz.png"), tr("&XYZ"),
this);
... and inserting it into a QMenuBar, both icon and text are displayed.
When inserting the same action into a QToolBar, only the icon is
displayed.
Can I get the toolbar to display both (or only the text, which I would
prefer to do without creating a second action)?
Thank you,
r.
--------------------------------------------------------------------
Rene Kaiser
Institute of Information Systems & Information Management
JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, A-8010 Graz, AUSTRIA
phone: +43-316-876-1173 fax: +43-316-876-1191
web: http://www.joanneum.at/iis
e-mail: mailto:rene.kaiser@xxxxxxxxxxx
--------------------------------------------------------------------
--
[ signature omitted ]
Message 2 in thread
Hi, Rene,
http://doc.trolltech.com/4.2/qtoolbar.html#toolButtonStyle-prop
--
[ signature omitted ]