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. QT 4.8 doesn't show GUI style GTK+
Forum Updated to NodeBB v4.3 + New Features

QT 4.8 doesn't show GUI style GTK+

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 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.
  • U Offline
    U Offline
    ufechner
    wrote on last edited by
    #1

    Hello,

    I installed qt 4.8 from the sources on Ubuntu 11.04, 32 bit.
    If I use it to compile my application, they are slow and look ugly.
    The reason is the GUI style:
    With at 4.7 I use the GTK+ GUI style. It is selected for my user
    account, but not used for applications, compiled with QT 4.8.
    If I type:
    @cd /usr/local/Trolltech/Qt-4.8.0/bin
    ./qtconfig@
    then the GUI style GTK+ is not offered in the dropdown box.
    If I use qtconfig, that comes with Ubuntu (from qt 4.7) it is offered,
    but these settings are not used by qt 4.8 applications.

    How can I fix this?

    Best regards:

    Uwe Fechner

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

      Well, are you sure that the GTK style was compiled? You should have seen that when running configure. Try to see if src/gui/Makefile contains styles/qgtkstyle.cpp in the source files (or instead if it defines QT_NO_STYLE_GTK).

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • U Offline
        U Offline
        ufechner
        wrote on last edited by
        #3

        Hi,
        yes, it contains styles/qgtkstyle.cpp in the source files.

        Any other idea?

        Regards:

        Uwe Fechner

        1 Reply Last reply
        0
        • D Offline
          D Offline
          danimo
          wrote on last edited by
          #4

          You built Qt 4.8 yourself it seems. If configure cannot find the libs/headers from the GTK+ devel packag, it will not build the style, but do so silently. it will only error out if you force the style (./configure -gtkstyle). The presence of styles/qgtkstyle.cpp is no indication that it's actually being compiled in.

          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