I need restart the application, i need know how do this. Exist a function to restart e.g "restart()"?
I use QT and I like it![]()
I need restart the application, i need know how do this. Exist a function to restart e.g "restart()"?
I use QT and I like it![]()
What caused it to stop?
Got to keep the loonies on the path ...
I launch a dialog asking if he want a fullscreen or maximized and this save in bd a bool, and i need restart to pass again in main.cpp that read this bool
Will restarting the app work?
I think that all you need to do is use
with or whateverQt Code:
To copy to clipboard, switch view to plain text mode
Got to keep the loonies on the path ...
Well then you don't need a restart! just create a private slot which reacts on the user decision and change to full screen of maximized. E.g.:
Qt Code:
void MyMainWindow::changeScreenState(bool fullscreen) { if (fullscreen) showFullScreen(); else showMaximized(); }To copy to clipboard, switch view to plain text mode
hmm, i need something to restart this aplication, to pass again in main.cpp
Why does main.cpp need to know? Your main widget (perhaps mainWindow.cpp) can just be sent a signal.
how i call the mainWindow, give me error...
Are you asking how to send a signal from the dialog to the widget/window?
If so try reading the official documentation http://doc.trolltech.com/4.6/signalsandslots.html
Got to keep the loonies on the path ...
Bookmarks