You create the mainWindow object after you connect it to your slot. So at the time of connect, you have an invalid pointer there.
Try either creating the object before connect, or moving the connect in the function where you create the window.
You create the mainWindow object after you connect it to your slot. So at the time of connect, you have an invalid pointer there.
Try either creating the object before connect, or moving the connect in the function where you create the window.
thank you, it solved my segment fault and work now after I move connect to gui()
Bookmarks