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); XYZviewAct->setIcon(QIcon("3dicon.png")); View3DToolBar->addAction(XYZviewAct);
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?