I want the same slots for all the toolbars and now it's working great.
Thanks again for the help!
Something like
Qt Code:
  1. void MainWindow::CreateToolBar( QMainWindow *parent )
  2. {
  3. QToolBar *tb = parent->addToolBar("test");
  4. QAction *actionPrint = tb->addAction( QObject::tr("Print Record"), this, SLOT(on_actionPrint_triggered()));
  5. actionPrint->setIcon(QPixmap(":/Images/printer.bmp"));
  6. actionPrint->setText(QObject::tr("Print Record"));
  7. actionPrint->setToolTip(QObject::tr("Print Record"));
  8. // ...
  9. }
To copy to clipboard, switch view to plain text mode