Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt ugly font on Hyper-V machine

    General and Desktop
    2
    3
    806
    Loading More Posts
    • 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
      Boris L last edited by

      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 Reply Quote 0
      • B
        Boris L last edited by

        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 Reply Quote 0
        • E
          echostorm last edited by

          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 Reply Quote 0
          • First post
            Last post