qt - How do I enable HiDPI (Retina) support in a Qt4 OpenGL application? -


i using qgraphicsscene qgraphicsview, described in this document; intend overlay qt widgets on top of opengl rendered scene.

when launch dummy application modeled after tutorial above, rendered view heavily pixelated-- hidpi isn't working @ all. per this document, i've manually added:

<key>nshighresolutioncapable</key> <string>true</string>  

to application's info.plist file, still no effect. (it seems supposed default true anyway, maybe that's not surprising).

beyond above, haven't found what's needed hidpi working. not using qtcreator, , qt install macports' qt4-mac. missing?

qt5 enables hidpi opengl context, not widgets , qgraphicsitems.

according this bug, support rendering widgets , qgraphicsitems on qglwidget in hidpi not yet supported; render @ standard res , resized.

qgraphicsview render in hidpi if has ordinary qwidget it. if possible achieve desired effect using qgraphicsitems without opengl, may preferable until hidpi support improved.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -