Results 1 to 7 of 7

Thread: QT 4.7 looks ugly on GNOME!

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question QT 4.7 looks ugly on GNOME!

    Hi all!
    I have installed QT 4.7.0 from source code in my "LinuxMint Debian based" OS. It was a little hard but I did it. =)

    My post is because the gui of "dessigner", "assistant" and "qtdemo" looks ugly... although qtcreator looks perfect! Maybe because I installed it separately from the others(I download the package qt-creator-linux-x86-opensource-2.0.1.bin from thw nokia site).

    Here are some Images:







    And the QT Creator look pretty beautiful!!



    Can anyone help me and tell me what packages shold I intstall?
    Or what configuration files should I change??

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT 4.7 looks ugly on GNOME!

    Run the qtconfig tool and see what the default style of Qt applications is used. You might have disabled some styles when building Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,728
    Thanks
    13
    Thanked 1,608 Times in 1,535 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT 4.7 looks ugly on GNOME!

    It's possible that Qt was built without support for TrueType or anti-aliased fonts, while the pre-built Creator binary was. I would guess the correct configure option would be "-fontconfig" and that is on by default in my copy. It may not be finding the needed includes and libraries during configure.
    Qt Code:
    1. $ ./configure --help
    2. ---8<---snip----
    3. -no-fontconfig ..... Do not compile FontConfig (anti-aliased font) support.
    4. * -fontconfig ........ Compile FontConfig support.
    5. Requires fontconfig/fontconfig.h, libfontconfig,
    6. freetype.h and libfreetype.
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Lightbulb Re: QT 4.7 looks ugly on GNOME!

    Quote Originally Posted by ChrisW67 View Post
    It's possible that Qt was built without support for TrueType or anti-aliased fonts, while the pre-built Creator binary was. I would guess the correct configure option would be "-fontconfig" and that is on by default in my copy. It may not be finding the needed includes and libraries during configure.
    Qt Code:
    1. $ ./configure --help
    2. ---8<---snip----
    3. -no-fontconfig ..... Do not compile FontConfig (anti-aliased font) support.
    4. * -fontconfig ........ Compile FontConfig support.
    5. Requires fontconfig/fontconfig.h, libfontconfig,
    6. freetype.h and libfreetype.
    To copy to clipboard, switch view to plain text mode 
    So what?
    I have to uninstall QT and install it again but with the correct -fontconfig parameter?

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,728
    Thanks
    13
    Thanked 1,608 Times in 1,535 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT 4.7 looks ugly on GNOME!

    No need to uninstall, but you may need to reconfigure, rebuild, and reinstall. Ultimately, only you know whether you changed the configure options when you built the source code, if the configure turned something off because require libraries could not be found, or what's on your machine.

    If
    Qt Code:
    1. pkg-config --exists fontconfig --exists freetype2 && echo Yes
    To copy to clipboard, switch view to plain text mode 
    prints Yes then you should be able to build with fontconfig and freetype support. Also inspect the options in
    Qt Code:
    1. ./configure --help
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT 4.7 looks ugly on GNOME!

    I decided to follow the ChrisW67's instructions and everything was OK!

    I will write all the steps I did:

    Qt Code:
    1. cd /opt/qt-everywhere-opensource-src-4.7.0/
    2. make confclean
    3. ./configure -opensource -largefile -no-qt3support -gtkstyle -fontconfig
    4. make
    5. make install
    To copy to clipboard, switch view to plain text mode 

    When all the commands above were done, I run qtdemo and QT Designer and it was the result:





    Thanks to all
    Post Solved!

  7. #7
    Join Date
    Nov 2010
    Location
    Jakarta, Indonesia
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.7 looks ugly on GNOME!

    I have same problem..

    I have installed Linux Mint 10 Julia GNOME version 64 bit with Qt 64 bit inside
    But I find menu bar of QtDesigner is different with my default theme (Macbuntu theme)
    And when I highlight "File > Open", it turns white font without blue background highlight like in Mozilla

    For image, please find below attachment.

    Please help me how to solve this problem.

    Note :
    I have set GTK+ as default setting in Qt4 Config
    Attached Images Attached Images

Similar Threads

  1. QGraphicsView ugly distortion yuck
    By genjix in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2010, 14:05
  2. KDE vs. GNOME
    By mbrusati in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2009, 06:59
  3. QDial looks too ugly, Why not improve it
    By lmax in forum Qt Tools
    Replies: 2
    Last Post: 13th March 2009, 21:03
  4. QTableView Horizontal Bar depressed, looks ugly.
    By killerwookie99 in forum Qt Programming
    Replies: 5
    Last Post: 4th March 2009, 14:01
  5. Ugly move with a top-level setMasked widget
    By nooky59 in forum Qt Programming
    Replies: 11
    Last Post: 17th December 2007, 16:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.