GUI looks bad on Solaris10
Hi
I have built Qt 4.7.2 on Solaris 10, and loaded a simple PyQt app with uic and a GUI made in Qt Creator.
The app and GUI loads fine – however the appearance is pretty bad – fonts are rendered poorly and hard to read, everything is a uniform dull grey color, and widgets are shaped very plainly.
I can use qtconfig to choose different styles – such as Plastique – and while it improves the shape of the widgets (smoother edges etc), the fonts and overall color remain bad. Choosing different fonts through qtconfig don’t really change much – monospace probably looks the best but still relatively poor.
What am I doing wrong?
I built Qt fairly restricted with no multimedia, no phonon, but did link against glib, fontconfig and enabled gtkstyles.
Cheers
5 replies
Yeah, the default stuff for Solaris 10 is hideously out of date. For the KDE4 Solaris project, we end up building a lot of newer version so it looks better. We also use apache stdcxx in our builds as opposed to stl4. Take a look at http://techbase.kde.org/Projects/KDE_on_Solaris.
I just had this same problem with font ugliness on Solaris 10. I fixed it by updating to FreeType 2.2.4 [sourceforge.net] and FontConfig 2.8.0 [cgit.freedesktop.org]. once you install these libraries (for some reason the old existing versions I had wouldn’t work with Qt4), you can add the following lines to your ~/.Xdefaults configuration file If you have one:
- ! Xft font settings -----------------------------------------------------------
- Xft.dpi: 96
- Xft.autohint: false
- Xft.antialias: true
- Xft.rgba: rgb
- Xft.lcdfilter: lcddefault
- Xft.hinting: true
- Xft.hintstyle: hintslight
After these changes, Qt fonts look just as good as an out of the box Linux/KDE version would. Good luck!
You must log in to post a reply. Not a member yet? Register here!
