[Qt4-preview-feedback] Qt-4.5 RC1: Calling QWidget::activateWidget has opposite effect
Thomas Sondergaard
ts_news1 at sondergaard.cc
Tue Feb 10 21:15:51 CET 2009
With CentOS 5.2 gnome/metacity and Qt-4.5-RC1 the label in the following
program will lose focus, rather than gain focus by calling
QWidget::activateWidget. If the app.processEvents() invocation is
uncommented it works. This is a regression from 4.4.3.
I understand that calling QWidget::activateWindow is typically not
necessary or desirable in this situation. I just stumbled over this and
thought I'd report it.
Regards,
Thomas Sondergaard
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QLabel w("Hello World");
w.resize(1000, 1000);
w.show();
// app.processEvents();
w.activateWindow();
return app.exec();
}
More information about the Qt4-feedback
mailing list