lundi 20 avril 2015

Add an Icon to a QAction in toolbar

I'm working with Qt in visual studio. I want to add Icons in the menuBar of my application. Here is what I have so far :

QToolBar *View3DToolBar;
QAction * XYZviewAct;
XYZviewAct = new QAction(tr("3D view"), this);

The program works. However I have this problem: it doesn't display the Icon.

Has anyone done this using Qt/C++? Could anyone point me to a solution?

Aucun commentaire:

Enregistrer un commentaire