Quote Originally Posted by franco.amato View Post
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.
I solved the problem,
but now I would know if Qt support 48 x 48 icons in the toolbar because seems that only support 32 x 32.
Best Regards