[Qt-interest] Missing Cursor in QLineEdit with Fullscreen QGraphicsView
Aron Bierbaum
aronbierbaum at gmail.com
Wed Jul 29 23:05:49 CEST 2009
For some reason if I add a QLineEdit to a QGraphicsScene and display
the QGraphicsView fullscreen the cursor is not displayed in the line
edit. I have attached a very simple example that shows it works when
you show the view, but when you show full screen it does not. Any
ideas on what could be going wrong?
Thanks,
Aron Bierbaum
-------------- next part --------------
#include <QtGui>
int main(int argc, char** argv)
{
QApplication app(argc, argv);
QGraphicsScene* scene = new QGraphicsScene();
QGraphicsView view(scene);
QLineEdit* line_edit = new QLineEdit("Testing");
QGraphicsProxyWidget* proxy = scene->addWidget(line_edit);
//view.show();
view.showFullScreen();
app.exec();
}
More information about the Qt-interest-old
mailing list