babu198649
4th February 2009, 05:49
Hi
I want to add an QAction to toolbar which contains only text(no Icons).The text will contain spaces but the spaces are stripped down even when i used the QAction::setText(const QString& text) function.
In the following code the space's are stripped downl
QAction *ac=new QAction(this);
ac->setText(" act ");//the spaces are stripped down
addToolBar("toolbar")->addAction(ac);
How to get the spaces in QAction text.
I want to add an QAction to toolbar which contains only text(no Icons).The text will contain spaces but the spaces are stripped down even when i used the QAction::setText(const QString& text) function.
In the following code the space's are stripped downl
QAction *ac=new QAction(this);
ac->setText(" act ");//the spaces are stripped down
addToolBar("toolbar")->addAction(ac);
How to get the spaces in QAction text.