Hi,

We've found a problem with the Qt 4.5 Mac Cocoa port. In 4.4, we could create a QWidget as a child widget of a QGLWidget. We use this, for example, to pop up a QLineEdit for editing the name of an object. In Qt 4.5 Cocoa, the child widget is not displayed. The code below shows the problem. Replace QGLWidget with QWidget and all is well. With QGLWidget, the QLineEdit is invisible.

QGLWidget *w = new QGLWidget();
w->resize( 300, 200 );
w->show();
QLineEdit *w2 = new QLineEdit();
w2->setParent( w );
w2->move( 100, 100 );
w2->show();

Jerry Huxtable, Senior Software Engineer
The Foundry, 1 Wardour Street, London, W1D 6PA, UK
Tel: +44 (0)20 7434 0449 •  Fax: +44 (0)20 7434 1550 •  Web: 
www.thefoundry.co.uk

The Foundry Visionmongers Ltd • Registered in England and Wales No: 4642027



_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to