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. Qt ugly font on Hyper-V machine

Qt ugly font on Hyper-V machine

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 934 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.
  • B Offline
    B Offline
    Boris L
    wrote on last edited by
    #1

    I encountered some strange behavior of my Qt application:
    It looks OK on a real OS, but text in all widgets looks ugly on virtual Hyper-V machine (Windows 7).
    When I enlarged the screenshot, I saw that the text is ether not antialiased at all (QToolbar) or antialiased the strange way (other widgets)

    I tried:
    @ QFont f = app->font();
    f.setStyleStrategy(QFont::PreferAntialias);
    app->setFont( f );
    @

    The font became better looking, but it no longer looked native on all machines (physical and virtual).

    And the strangest thing:
    @ app->setFont(app->font() );
    @

    Produces the same effect.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Boris L
      wrote on last edited by
      #2

      If I connect to virtual machine using RDP everything is fine.

      I guess the problem may be in Hyper-V video driver, but I wonder why it affects only my Qt App and does not affect other programs. Does Qt uses some unique API to draw text?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        echostorm
        wrote on last edited by
        #3

        how about you also play around with font hinting and see how it affects your app on the virtual Hyper-V machine...

        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