Hello all.

I’m trying Qt::AA_EnableHighDpiScaling with app that has a 
QQuickFramebufferObject. Now, I create the FBO inside 
createFramebufferObject(const Size &size). The value of the passed in size is 
twice the size of the QQuickItem that contains FBO.

Now, I have the item size set to 100x100. If I change the scaling from 100% to 
200%, the desiredSize that’s requested from the createFramebufferObject becomes 
200x200. But If I return an FBO with 200x200 size, the OpenGL content looks 
half the size of the item that’s holding it.

If I return a size by dividing the desiredSIze by devicePixelRatio, the OpenGL 
content fits to the QQuickItem it belongs but then it looks scaled up and I 
lose resolution and the OpenGL content looks a bit pixelated. It looks just 
fine If I return the FBO size as 200x200 though.

I’m trying to see If it’s possible to use physical pixel value for the OpenGL 
content and use the device independent pixel for the rest of the UI elements.

Regards,
Furkan Uzumcu
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to