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

Was it helpful?

Solution

There is a bug report about this. Hasn't been evaluated yet though

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top