[SOLVED] QMenuBar
General and Desktop
7
Posts
3
Posters
2.5k
Views
1
Watching
-
Hi, I'm trying to figure out why my QMenuBar doesn't work.
@ WidgetVisible = ui->menuBar->addAction("Add Labels Screen");
connect(WidgetVisible, SIGNAL(triggered()), this, SLOT(WidgetOn()));@then when I click on "Add Labels Screen" it doesn't do anything??
Thank you for your help,
mrstarware
-
Ok I just found the application output. I didn't know it existed. x.x
Anyway, it says "No such slot MainWindow::WidgetOn()" What would be causing this? the connection is made in MainWindow's constructor? -
Oops. Messed up on the definition of "slot". It works now.
Thanks much.