Hi,
I have an EventLoop defined like this
void MyWindow()
m_Loop = new QEventLoop() -- class parameter
--do stuff
--connect keyPressed - quit(m_loop)
m_loop.exec() --In order to wait a keyPressed and close the window
... If we wait a lot of time in order to press the key, an energy-saver begins its execution, we have connected a QTimer (120 seconds) to a slot called EnergySaver()
Inside the slot we do:
m_loop.exit() -- In order to end and close the window because of energy-saver.
The problem is that this exit() is executing a lot of instructions after it was called.
Why?
Thanks in advance
K
Bookmarks