Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.0
-
None
-
310068
Description
Widgets that are added to a QGraphicsScene via QGraphicsProxyWidget do not obey the QWidget's or QGraphicsProxyWidget's focus policy.
For example, having a QCheckBox with Qt::NoFocus policy will take the focus away from a QLineEdit.
This only appears to occur for widgets on canvas.
Non QGraphicsView widgets do obey the focusPolicy as expected.
Update: The fix was reverted before 4.4.1 was released - this task has been reopened. The original fix was wrong.
Test case main.cpp to reproduce issue
======================================
#include <QtGui>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0)
: QMainWindow(parent)
};
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MainWindow mw;
mw.show();
return a.exec();
}
#include "main.moc"