Results 1 to 5 of 5

Thread: what's the matter with my qt applications?

  1. #1
    Join Date
    Apr 2007
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default what's the matter with my qt applications?

    First of all, English is not my mother tongue, I think there are some(or many) wrong expressions.

    I installed Ubuntu 7.04 at last weekend, and I faced a problem.

    The Applications I built with Qt4 look very "ugly".

    Please see this image.


    It's assistant application built when Qt4 libraries was built, and all characters in the application look "dirty".

    The characters of all applications built with Qt including not only what I made but also ones built when Qt4 libs was built look same.

    Does anybody what's wrong with my applications?

    The version of Qt is 4.3.0 open source edition for x11, and the OS is Ubuntu 7.04.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: what's the matter with my qt applications?

    I don't see any problem.
    But if you don't like the used font, change the used font in KDE seetings (locale).
    It has nothing to do with Qt.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    May 2007
    Posts
    11
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: what's the matter with my qt applications?

    I'm not sure if the KDE font settings have any effect on Qt4, but try changing the options on the fonts tab in qtconfig. I can't see anything wrong with the image either though, unless you're talking about the fonts in the Context2D and Calculator screenshots, which I presume you aren't. In those cases I think whoever took the screenshots at Trolltech had gone a little nuts with antialising :P.

  4. #4
    Join Date
    Jan 2006
    Posts
    15
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: what's the matter with my qt applications?

    Unless you changed from Ubuntu's defaults I guess you should have anti-aliased text in that picture, meaning smoother fonts. I suspect the reason you are not seeing this is that you built Qt yourself and did not have all the correct dependencies set up before running configure. If you run configure again and look at the output at the beginning you should see a list _roughly_ like this :

    XShape support .... yes
    Xcursor support .... yes
    Xrander support ... yes
    Xrender support ... yes
    FontConfig support ... yes

    If any of those are missing you need to install the missing library. Then run configure and compile qt again. Alternatively, you could use the pre-compiled Qt version that is available through the official Ubuntu repositories.

  5. #5
    Join Date
    Apr 2007
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: what's the matter with my qt applications?

    high_flyer //
    You can see that the shape of assistant's characters is different from that of characters in screenshots in assistant.
    And my OS's GUI is not KDE but GNOME.
    Thank you.

    Waywocket //
    I've already tried changing fonts with qtconfig. It works for changing font, but doesn't make font characters smooth.
    Thank you.

    jens //
    I think you're right.
    I checked them, and the result is...

    XShape support ...... yes
    Xinerama support .... no
    Xcursor support ..... no
    Xfixes support ...... no
    Xrandr support ...... yes
    Xrender support ..... yes
    FontConfig support .. no

    I rebuild with Qt I downloaded from Debian packages, and now, I can see clear fonts!

    The problem solved. Thank you.

Similar Threads

  1. Replies: 27
    Last Post: 14th May 2008, 10:39
  2. Networking between applications
    By croland in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2007, 10:35
  3. Integrating Qt applications in a Framework
    By kewltea in forum Newbie
    Replies: 1
    Last Post: 15th November 2006, 07:01
  4. Working with Date type in database applications
    By kolach in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2006, 14:20

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.