Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird rendering issue with 2 screens (Mac OS) #3

Open
gillesfernandez opened this issue Mar 21, 2017 · 10 comments
Open

Weird rendering issue with 2 screens (Mac OS) #3

gillesfernandez opened this issue Mar 21, 2017 · 10 comments

Comments

@gillesfernandez
Copy link

First of all, thank you for this ! It's been a while I wanted to code this and never took the time for it...

I tried it and everything worked really nice until I connected an external screen. I ran into a really weird issue : the content is downscaled and uses a quarter of the available size.
screen shot 2017-03-21 at 19 35 15

The issue only appears on one of the screen, with the lowest DPI. The weird part is that if I log the width in QML, it's the width of the window. And we can't see my mouse cursor on the screenshot, but it reacts normally.

So, only the rendering isn't what it should... I googled a bit and didn't find anything valuable... Any idea where to look at?

@gillesfernandez
Copy link
Author

Took me a while but finally found something relevant... Looks like it's on Qt side : https://bugreports.qt.io/browse/QTBUG-58626

@dfct
Copy link
Owner

dfct commented Mar 23, 2017

Wow, nice bug find on qt.io! Have you tried a pre Qt 5.8.0 version? While I wasn't using QML as you are, I otherwise haven't seen this in pre 5.8.0 projects on macOS.

@gillesfernandez
Copy link
Author

Same issue with 5.7, we'll see for 5.9 !

@dfct
Copy link
Owner

dfct commented Jul 6, 2017

Any luck with Qt 5.9? I can confirm that non-QML works in Qt 5.9 on macOS, just tested that today while fixing a bug introduced on the Windows side. (In related news, they reworked a lot of their DPI code, so 5.9 may very well have helped this!)

@coooooooorey
Copy link

I can confirm that non-QML works in Qt 5.9 on macOS

does that mean I can't use it in a qml application?
: (

thanks for your work~

@dfct
Copy link
Owner

dfct commented Jul 9, 2017

@coooooooooorey I'm not sure if the bug linked above is still present as of 5.9. I don't use QML myself, so I don't have anything on hand to test with. Please do let me know if you have trouble if you give it a try!

@gillesfernandez
Copy link
Author

I just installed Qt 5.9, I'll try it out this week and give you feedback but given the bug report, it is not fixed yet :(

@gillesfernandez
Copy link
Author

Tested with Qt 5.9.1, same issue...

@dfct
Copy link
Owner

dfct commented Jul 15, 2017

Ugh, dang. Do you have any simple sample code to repro it by chance?

@gillesfernandez
Copy link
Author

There is a simple sample code attached here: https://bugreports.qt.io/browse/QTBUG-58626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants