B
B
badproger12years2019-05-23 22:18:03
Qt
badproger12years, 2019-05-23 22:18:03

How to close the window correctly?

I have two windows, the first window is the privacy policy window. The second window opens when you agree to the first window. It is necessary for me that the first window would be closed right after opening of the second. I tried with QApplication::quake and firstclassname::close().
But there is a second problem, the second window does not have time to open.
I moved close to the beginning of the code and to the end and to the middle, Nothing helped.
How to SAFELY CLOSE the window and manage to open the second window.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2019-05-23
@badproger12years

Read any book on Qt. Save a lot of time and find answers to a thousand more similar questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question