Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. GUI looks bad on Solaris10
Qt 6.11 is out! See what's new in the release blog

GUI looks bad on Solaris10

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 4 Posters 4.6k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    squiggly101
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dword
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        squiggly101
        wrote on last edited by
        #3

        solaris-cc-64

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SunTzuTech
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            squiggly101
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Randall
              wrote on last edited by
              #6

              I just had this same problem with font ugliness on Solaris 10. I fixed it by updating to "FreeType 2.2.4":http://sourceforge.net/projects/freetype/files/freetype2/ and "FontConfig 2.8.0":http://cgit.freedesktop.org/fontconfig/refs/. 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!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved