eumel1990
11th June 2011, 12:38
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()));
And I added this actions to my toolbar, like this:
navigationToolBar = addToolBar("Navigation");
navigationToolBar->addAction(moveFractalDown);
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);
The menu entries are created and they are functional, but the icons are not shown.
What am I doing wrong?
greeting eumel1990
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()));
And I added this actions to my toolbar, like this:
navigationToolBar = addToolBar("Navigation");
navigationToolBar->addAction(moveFractalDown);
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);
The menu entries are created and they are functional, but the icons are not shown.
What am I doing wrong?
greeting eumel1990