Qt 6.11 is out! See what's new in the release
blog
QTimer events not executed when holding minimize/maximize/close button.
General and Desktop
5
Posts
2
Posters
2.4k
Views
1
Watching
-
A C++ builder program does the same thing so its a windows thing/normal.
You could try to override event and see if any event is sent when "holding".
I assume the button get all events and hence no WM_TIMER is sent to the main window.bool MyMainWindow::event(QEvent * e)
{
switch(e->type())
{
} ;
return QMainWindow::event(e) ;
} -
So a thread it is. :)
If you really, really dont want a thread,
you could look into using a timer callback instead of events.
This is windows only. / not portable.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644901(v=vs.85).aspxReading the documentation, it seems Qt demands a message loop for Qt-timers.