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