Quote Originally Posted by Lykurg View Post
Come on Franco! How long are you dealing with Qt now? I am sure you noticed the assistant, please use it: http://doc.trolltech.com/4.6/resources.html. And your prefix question will solve, when you read that. About the toolbar one can hardly say something if you don't show the code you are using. And there is no direct connection between images and toolbars...
Which code do you need? I exactly copied from the mainwindow example.
I get the icon in the menu but the toolbar is not created

Qt Code:
  1. void MainWindow::createToolBar()
  2. {
  3. exitToolBar = addToolBar(tr("Exit"));
  4. exitToolBar->addAction(exitAct);
  5. }
To copy to clipboard, switch view to plain text mode 
and the action

Qt Code:
  1. /* Exit action */
  2. exitAct = new QAction(QIcon(":/images/exit.png"), tr("E&xit"), this);
  3. exitAct->setShortcut( tr("Ctrl+Q") );
  4. exitAct->setStatusTip(tr("Exit the application"));
  5. connect( exitAct, SIGNAL( triggered() ), this, SLOT( close() ) );
To copy to clipboard, switch view to plain text mode 

the qrc file:
Qt Code:
  1. <RCC>
  2. <qresource>
  3. <file>images/exit.png</file>
  4. </qresource>
  5. </RCC>
To copy to clipboard, switch view to plain text mode 

I don't understand why the toolbar is not created.