Hello,
I created some QAction objects like this:
moveFractalUp
= new QAction(QIcon(":/img/res/img/go-up.svg"),
"Move up",
this);
connect(moveFractalUp, SIGNAL(triggered()), this, SLOT(MoveFractalUp()));
moveFractalUp = new QAction(QIcon(":/img/res/img/go-up.svg"), "Move up", this);
connect(moveFractalUp, SIGNAL(triggered()), this, SLOT(MoveFractalUp()));
To copy to clipboard, switch view to plain text mode
And I added this actions to my toolbar, like this:
navigationToolBar = addToolBar("Navigation");
navigationToolBar->addAction(moveFractalDown);
navigationToolBar = addToolBar("Navigation");
navigationToolBar->addAction(moveFractalDown);
To copy to clipboard, switch view to plain text mode
This works well. The actions-icons are shown in the toolbar. But now I create a menu like this:
fractalNavigationMenu = menuBar()->addMenu("Fractal &navigation");
fractalNavigationMenu->addAction(moveFractalDown);
fractalNavigationMenu = menuBar()->addMenu("Fractal &navigation");
fractalNavigationMenu->addAction(moveFractalDown);
To copy to clipboard, switch view to plain text mode
The menu entries are created and they are functional, but the icons are not shown.
What am I doing wrong?
greeting eumel1990
Bookmarks