There is a bug report about this. Hasn't been evaluated yet though
QDesktopWidget doesn't emit any signal at screen resolution change or monitors count
-
06-10-2022 - |
Question
I'm testing on Mac OS 10.9.1 with Qt 4.8.5 The same code works on Windows and I'm pretty sure it worked before update from the MacOS 10.8.
private slots:
void desktopResized(int screen);
void desktopScreenCountChanged(int newCount);
...
bool result = connect(qApp->desktop(), SIGNAL(resized(int)), SLOT(desktopResized(int)));
Q_ASSERT(result);
connect(qApp->desktop(), SIGNAL(screenCountChanged(int)), SLOT(desktopScreenCountChanged(int)));
Slots just never get called on change of monitor resolution. Does anyone have the same problem, any solution? Thanks
[UPDATE] The bug is resolved in Qt 5.2.1
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow