Important: Please read the Qt Code of Conduct -

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.

    ! rendering comparison)!



    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:

    It 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:,58765 and,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 for the info. That certainly adds some interesting context. Someone will take a look at this next week. I linked to this thread form the e-mail.

  • 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.

Log in to reply