durbrak
29th October 2006, 10:13
Hello,
I happened to notice that Qt behaves slightly different than it's supposed to. I'm using Qt 4.2.1 on Windows XP SP2.
If I use the standard Blue Luna theme on Windows XP Qt's font rendering looks exactly like it should. However, if I change to a custom theme where the theme uses a anti-aliased font Qt still uses the old standard pixel font, even though all my programs on Windows (Firefox, Thunderbird, Nero, Internet Explorer, Windows Explorer etc.) display the new smooth font.
Here's a screenshot from the Windows Explorer (top: Blue Luna; bottom: Custom Skin with smooth font)
http://img155.imageshack.us/img155/3152/viewbg9.png
Qt displays it still like this:
http://img88.imageshack.us/img88/1971/asoz4.png
However, Qt manages to display all QMenu(s) and QMessageBox(es) with the new smooth font (screenshot taken from the about box of Qt Assistant):
http://img247.imageshack.us/img247/1720/aboutxx5.png
So, when I switch to the custom theme, Firefox and all my other Windows programs use this new smooth font in every single control (treeviews, listviews, buttons, tabs, labels... just everything) but Qt still sticks to the old clumsy font.
How to avoid this behavior or is there any workaround?
Is this even a bug, because Qt seems to display QMenu and QMessageBox (but not QDialog) with the right font but the rest is just the old aliased font?
Thank you guys in advance.
I happened to notice that Qt behaves slightly different than it's supposed to. I'm using Qt 4.2.1 on Windows XP SP2.
If I use the standard Blue Luna theme on Windows XP Qt's font rendering looks exactly like it should. However, if I change to a custom theme where the theme uses a anti-aliased font Qt still uses the old standard pixel font, even though all my programs on Windows (Firefox, Thunderbird, Nero, Internet Explorer, Windows Explorer etc.) display the new smooth font.
Here's a screenshot from the Windows Explorer (top: Blue Luna; bottom: Custom Skin with smooth font)
http://img155.imageshack.us/img155/3152/viewbg9.png
Qt displays it still like this:
http://img88.imageshack.us/img88/1971/asoz4.png
However, Qt manages to display all QMenu(s) and QMessageBox(es) with the new smooth font (screenshot taken from the about box of Qt Assistant):
http://img247.imageshack.us/img247/1720/aboutxx5.png
So, when I switch to the custom theme, Firefox and all my other Windows programs use this new smooth font in every single control (treeviews, listviews, buttons, tabs, labels... just everything) but Qt still sticks to the old clumsy font.
How to avoid this behavior or is there any workaround?
Is this even a bug, because Qt seems to display QMenu and QMessageBox (but not QDialog) with the right font but the rest is just the old aliased font?
Thank you guys in advance.