hi ,

Could you please explain , how to use resources file .
What i did........
1) created a main window,
2) added QActions on main window . and trying to put icons( .png ) on actions.
3) created My_Resource.qrc, then added imageOne.png , imageTwo.png ...etc from the Application directory.

see the code here, its not showing the "imageOne.png " in the QAction on mainwindow.
Qt Code:
  1. MyMainWindow::MyMainWindow(QWidget *parent)
  2. : QMainWindow(parent)
  3. {
  4. QAction* actNew = new QAction( QIcon("imageOne_1.png") , "&New File ..", this);
  5.  
  6. QMenu *fileMenu = menuBar()->addMenu(QObject::tr("&File"));
  7.  
  8. fileMenu->addAction( actNew );
  9.  
  10. }
To copy to clipboard, switch view to plain text mode 

please help how to load the image from the .qrc file.
How it is different from load image directly from a realative path..??
NB : I am using VC++ editor

thanks