Qt Quick TextField: is there a text rendering setting?
-
Greetings,
I'm struggling to find a way to set the text rendering type on a TextField. The control seems to be based on a TextInput introduced in earlier versions of Qt Quick, but it doesn't expose the renderType property. Am I missing a way to set this?
I've included a screenshot of how an example window looks. Compare the controls that use native rendering (Label, TextField) to those that appear to use a different render setting (ComboBox, TabView, Tab) and you'll note the difference in legibility.
!http://farm8.staticflickr.com/7321/9518262928_05a05ee97b_o_d.png(Text rendering comparison)!
Thanks,
Adam
Edit: Fixed the image URL
-
No there is no setting but I don't think that is the real issue at play here. NativeRendering should really look almost exactly like the Qt rendering on mac due to it's nature and in your screenshots there is clearly a bug.
This seems to have been reported as an issue against Mac OS 10.7 but it doesn't seem to reproduce on all systems so I would suspect it is 10.7 + a particular graphics configuration:
https://bugreports.qt-project.org/browse/QTBUG-31720It might be useful if you add your platform and mac model/graphics card to that issue to narrow it down. Two fixes have been proposed so far:
https://codereview.qt-project.org/#change,58765 and https://codereview.qt-project.org/#patch,all,58799,2 but they were both flawed it seems. -
Jens,
Of course, my apologies - I should've remembered to include my platform and other details. My work setup is a MacBook Pro (MacBookPro10,1) with an NVIDIA GeForce GT 650M running OS X 10.8.4.
I also need to clarify something else:
The above screenshot was taken while I was connected to/using a Thunderbolt Display instead of the laptop's display. When running my sample application with no external monitors connected, it seems to look as expected (i.e., there is no discernible difference between "native" and "Qt" rendering). Perhaps there is a quirk involving the difference in DPI between the Retina and Thunderbolt displays.Thanks,
Adam -
Thanks for your help, Jens!
-
I have an interesting tidbit to add for consideration.
My coworker's hardware configuration is identical to mine (except his 2.6GHz CPU vs. my 2.3GHz), we're both running OS X 10.8.4, and I'm actually using his build of Qt 5.1 that we just copied over to my laptop.
We just copied over my Quick-based GUI to his laptop and it renders perfectly on his machine. He's also connected his laptop to a Thunderbolt Display and is using it as his main display instead of the laptop's builtin display.
Just thought I'd throw that out there.