Segmentation fault while debugging in Toolbar creaton [solved]
I am trying to build MainWindow with some toolbars and menus. So in my mainwindow.h I have private variables QToolbar * filetBar; And in .cpp file, I am calling: createToolbars which is:
filetBar = addToolBar(tr("&File"));
When I run, it just says The program has unexpectedly finished. When I run it with debugger is gives me
Signal name : SIGSEGV Signal meaning : Segmentation fault ad line
@ filetBar->addAction(openAction); @
I create menus similarly:
@ void MainWindow::createMenus()
fileMenu = menuBar()->addMenu(tr("&File"));
It show menus, and actions are working. Any idea how can I fix it? Thanks.
Is openAction initialized ?
I have found a bug, it is working,
Glad you found out !
Then since it's working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)