Hi to all,
I'm writing an application where I have a MainWindow. I added a Menu Bar and QActions.
The problem is that the icons and the text in the menu are overlapped on the left side of menu
like in the images I'm attaching.

Here some code:

in mainwindow.h
Qt Code:
  1. class MainWindow : public QMainWindow, private Ui::MainWindow
  2. {
  3. Q_OBJECT
  4.  
  5. private:
  6. static MainWindow* m_instance;
  7.  
  8. OBox* m_application;
  9. Track* m_track;
  10.  
  11. QModelIndex m_lastPlayedIndex;
  12. QModelIndex m_newIndex;
  13.  
  14. QDateTime m_creationTime;
  15.  
  16. QHash<QDate, QString> m_hash;
  17.  
  18. QLabel *m_progressLabel;
  19. QProgressBar *m_progressBar;
  20.  
  21. QMenu *oboxMenu;
  22. QMenu *vehicleMenu;
  23. QMenu *videoMenu;
  24. QMenu *indexMenu;
  25. QMenu *helpMenu;
  26.  
  27. QAction *exitAction;
  28. QAction *vehicleAddAction;
  29. QAction *vehicleRemoveAction;
  30. QAction *vehicleInfoAction;
  31. QAction *videoSearchAction;
  32. QAction *videoDeleteAction;
  33. QAction *updateIndexAction;
  34. QAction *aboutAction;
  35.  
  36. QToolBar *mainToolBar;
  37.  
  38. private:
  39. void createActions();
  40. void createMenus();
  41. void createToolBar();
  42.  
  43. // .... more code
  44. }
To copy to clipboard, switch view to plain text mode 

and in mainwindow.cpp

Qt Code:
  1. void MainWindow::createActions()
  2. {
  3. exitAction = new QAction(tr("&Exit"), this);
  4. //exitAction->setIcon(QIcon(":/Resources/exit.png"));
  5. exitAction->setShortcut(tr("Ctrl+Q"));
  6. exitAction->setStatusTip(tr("Exit the application"));
  7. connect(exitAction, SIGNAL(triggered()), this, SLOT(close()));
  8.  
  9. vehicleAddAction = new QAction(tr("&Add"), this);
  10. vehicleAddAction->setIcon(QIcon(":/Resources/AddVehicle.png"));
  11. vehicleAddAction->setShortcut(QKeySequence::New);
  12. vehicleAddAction->setStatusTip(tr("Add a new vehicle to the list"));
  13. connect(vehicleAddAction, SIGNAL(triggered()), this, SLOT(addVehicle()));
  14. // .... more code
  15. }
  16.  
  17. void MainWindow::createMenus()
  18. {
  19. oboxMenu = menuBar()->addMenu(tr("&OBox"));
  20. oboxMenu->addAction(exitAction);
  21.  
  22. vehicleMenu = menuBar()->addMenu(tr("&Vehicle"));
  23. vehicleMenu->addAction(vehicleAddAction);
  24. vehicleMenu->addAction(vehicleRemoveAction);
  25. vehicleMenu->addSeparator();
  26. vehicleMenu->addAction(vehicleInfoAction);
  27. // .... more code
  28. }
To copy to clipboard, switch view to plain text mode 
I call the functions in the ctor of MainWindow class.
I'm attaching a screenshot. What I'm doing wrong?
Is not the first time I do something similar but is the first time that I get a similar result.

I hope to get some help.

Regards,
FrancoMenuError.jpg