GTK theme information not used (was: Fonts look non-optimal in Qt Creator)

Bug #1126210 reported by Timo Jyrinki
98
This bug affects 19 people
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Timo Jyrinki

Bug Description

Fonts don't look as good in Qt Creator compiled against Qt 5 than in the Qt Creator compiled against Qt 4.

This is part of the larger problem of using all defaults instead of reading some information from system theme like the Ambiance theme. Gtkstyle support should be integrated in Qt5 and it is not a build option anymore.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Confirmed
summary: - Fonts look non-optimal in Qt Creator
+ GTK theme information not used (was: Fonts look non-optimal in Qt
+ Creator)
description: updated
Revision history for this message
Dmitry Shachnev (mitya57) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I found that the test in configure looks for gtk/atk libraries, which were not build dependencies. I've built a test build at https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-staging

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

It seems to help, bringing it on par with how Qt Creator 2.6 built against Qt4 looked.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

So it'd be fixed now in the packaging branch with GTK support added in. But at least on one machine there's a graphics corruption in menus when the theme information is used, even though I've the menus looking fine.

I've been currently advised to hold on fixing this bug until we have proper appmenu-qt support which would workaround the issue. The issue itself is probably a graphics driver issue.

Changed in qtbase-opensource-src (Ubuntu):
assignee: nobody → Timo Jyrinki (timo-jyrinki)
Revision history for this message
Oleksandr Senkovych (blackjack) wrote :

@Time Jyrinki: libs&qtcreator from your ppa fixed fonts on my system without any glitches (video driver: intel), but icon set and mouse cursor bitmaps are still look like "hello from 1990". Anyway, thanks a lot!

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Thanks for testing! I believe the icon problem is related to this upstream patch proposal/bug: https://codereview.qt-project.org/#change,45291

Changed in qtbase-opensource-src (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

> Thanks for testing! I believe the icon problem is related to this upstream patch proposal/bug: https://codereview.qt-project.org/#change,45291

We now have a better solution (based on IRC discussion) ­— using GtkSettings to retrieve icon theme information. I hope I'll have a patch available in the nearest days.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Re the icon theme:

In QtBase 5.2, there is now a QGtk2Theme theme that supports reading icon theme name from GtkSettings (also it enables native Gtk dialogs). This makes the icon themes work in most cases.

To fix the issue in Ubuntu's QtBase 5.0, we can:

- Backport QGtk2Theme. The diff is very huge (see https://qt.gitorious.org/qt/qtbase/commit/ebca7d2ea71440b0), so I don't much like that.
- Use my original XSettings implementation (linked above). This goes against the Kubuntu patching policy (https://wiki.ubuntu.com/Kubuntu/Specs/MaverickPatchPolicy#Rule_Set), but I hope we can get an exception for that. It can then be dropped when we have QtBase 5.2.

Timo, what do you think?

Changed in qtbase-opensource-src (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Sorry for the late response. We're now finally hopefully getting the basic GTK theme support in, which will mean non-ugly fonts and correct theme colors etc. We're breaking the Kubuntu patch policy enough by adding the appmenu support via a patch (something prioritized during the last weeks), so I believe it's better to wait for 5.1/5.2 for the icon theme support. Or at least until the 13.10 development begins.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.0.1+dfsg-0ubuntu4

---------------
qtbase-opensource-src (5.0.1+dfsg-0ubuntu4) raring; urgency=low

  [ Łukasz 'sil2100' Zemczak ]
  * debian/patches/enable_appmenu_support.diff:
    - Add base-ported support for the Ubuntu global appmenu (LP: #1126205)
  * debian/rules:
    - Enable appmenu support when building the package

  [ Timo Jyrinki ]
  * Add build dependency on libgtk2.0-dev (and libatk1.0-dev) for
    gtkstyle support (LP: #1126210)
  * Add Vcs-Bzr for ~kubuntu-packagers
  * Because qt5.conf was moved to qtbase5-dev, depend on it from
    qt5-default. This means standalone development binaries like
    qmlscene cannot be used from the default path without installing
    development headers. Use deep paths instead.
  * Fix qmake-qt5 package description (LP: #1133196)
 -- Timo Jyrinki <email address hidden> Tue, 19 Mar 2013 12:47:57 +0000

Changed in qtbase-opensource-src (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
George (george-labuschagne-gmail) wrote :

Hi

So is this fix for Ubuntu 13.04 already included? I installed 13.04 today (25 April) and it my fonts in QtCreator looks bad, like they are not anti-aliased any more. They look different then the GTK fonts.

Revision history for this message
Simon (simon-floery) wrote :

same for me, after upgrading to 13.04 yesterday, qtcreator ignores gtk theme information (qtcreator 2.7.0-0ubuntu3, qtbase5-dev 5.0.1+dfsg-0ubuntu4).

thanks

Revision history for this message
AP (apxeng) wrote :

Is the fix available in any ppa? I tried ppa:canonical-qt5-edgers/qt5-proper and I still see the issue.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

It should be fixed for the majority of users in Ubuntu 13.04 already, but indeed some report that they are still seeing the problem. There's currently no knowledge of what causes those problems. There's additional theming / GTK / fonts work upcoming in upstream Qt 5.1.

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

For someone who has Qt 5 installed from the Ubuntu Touch PPA on 12.04, is there any possible fix on this LTS?

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The PPA for 12.04 has the same fixes, but as mentioned it does not solve all problems for everyone (it seems). If Qt 5.1.x offer additional improvements on font handling in some of the problem cases, they will eventually be offered via PPA as well. But Qt 5.1.x is currently only being tested at this point.

Revision history for this message
Pascal Mons (anton+) wrote :

Anyone knows if this fix has been applied to Precise 12.04 LTS for the current Qt 5.0.2 ?
The font size displayed in my Qt5 apps is way too big on my system. I used to get it right in Qt4 with the app Qt 4 Settings (package qt40qtconfig) which is not available for Qt5.

Revision history for this message
George (george-labuschagne-gmail) wrote :

This bug is still present in 14.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.