Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick TextField: is there a text rendering setting?
Forum Updated to NodeBB v4.3 + New Features

Qt Quick TextField: is there a text rendering setting?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      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-31720

      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:
      https://codereview.qt-project.org/#change,58765 and https://codereview.qt-project.org/#patch,all,58799,2 but they were both flawed it seems.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jens
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Thanks for your help, Jens!

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved