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. DPI
Forum Updated to NodeBB v4.3 + New Features

DPI

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 435 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 A Former User
    #1

    Hi,

    I use a QPainter widget to writing text into a QImage.

    QImage image(WIDTH, height, QImage::Format_RGBA8888);
    image.fill(Style::textBackgroundColor);
    QPainter painter(&image);
    painter.setPen(Style::textColor);
    painter.drawText(0, 0, "test");
    

    I look a difference between windows and mac (http://stackoverflow.com/questions/25761556/qt5-font-rendering-different-on-various-platforms). The DPI of windows seem smaller than mac. (96 DPI versus 72 ?).
    I need some help to have a clean solution at this problem.

    Regards,
    Robin

    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