Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Font rendering slightly differs between custom widget & Qt provided ones

Font rendering slightly differs between custom widget & Qt provided ones

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 93 Views
  • 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.
  • E Offline
    E Offline
    Ewan Green
    wrote on last edited by
    #1

    a69682cb-7c6a-43e5-9f83-43598b9a6dc8-image.png
    135f8ebe-786c-4c3e-8cea-60eeeb3b7378-image.png
    3f21a689-e209-494a-bc55-59899d3530c3-image.png

    If you look close, you can see that the antialiasing is different between my custom painted widgets (on the left) and the Qt-provided QComboBox. The combo box uses RGB subpixel order, while mine seem to be grayscale.

    My question is, how can I change it to do what everything else is doing? Is there something I can set in QPainter or QFont?

    I'm drawing my text with QPainter::drawText(). I've looked into QStylePainter and QStyle::drawControl() and such, but nothing seems to differ. I don't really know what to use that would help my situation, since those are all tailored to existing widgets.

    Ewan Green

    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