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.


  • Just curious, which mkspec did you use? solaris-cc or solaris-g++?

  • solaris-cc-64

  • 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

  • It turns out I was able to apply themes and fonts using the following code:

    @app.setPalette( app.setStyle( "Plastique" ).standardPalette( ) )
    app.setFont( QtGui.QFont("Terminal",12))@

    This makes the overall GUI look much better, and basically usable, however fonts are still pretty bad.

  • I just had this same problem with font ugliness on Solaris 10. I fixed it by updating to "FreeType 2.2.4": and "FontConfig 2.8.0": 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!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.