Qt 5.1.1 and retina display in QGLWidget on Mac: 1/4 of the size!



  • Hello,

    since Qt 5.1.1 (previously Qt 4.7.4), my application displays wrong sized openGl content in a QGLWidget, on Mac retina. Is this a known issue? Or is the Retina display not correctly detected on my system?

    I am using a QMainWindow, inside of which I have a Splitter (vertical): the upper part shows the QGLWidget (wrong size, basically 1/4 of the surface), the lower part shows a QPlainTextEdit (correctly displayed):

    in the QMainWindow constructor:

    @
    openglWidget=new QGLWidget ();
    splitter=new QSplitter(Qt::Vertical);
    splitter->addWidget(openglWidget);
    statusBar=new QPlainTextEdit();
    setCentralWidget(splitter);@

    Any idea what is going on, or any idea of a workaround?

    Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.