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
Qt Code:
  1. QAction *ac=new QAction(this);
  2. ac->setText(" act ");//the spaces are stripped down
  3. addToolBar("toolbar")->addAction(ac);
To copy to clipboard, switch view to plain text mode 

How to get the spaces in QAction text.