Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by zAchAry »

URLs:
qgtkstyle - A Qt 4 style that renders using GTK
Trolltech Labs page
Warning: This page is here for historical purposes. Since Qt 4.5, QGtkStyle has been shipped as part of the official Qt distribution. If you have any bugs or issues to report, please report them on the official Qt bugreport forum:

http://bugreports.qt.nokia.com/secure/Dashboard.jspa
The style requires Qt 4.3 (though 4.4 is preferred) and GTK+ 2.0 or higher. It intends to make Qt applications blend perfectly into the GNOME desktop environment by using GTK to render all components.
Selecting GTK+ theme in Qt Configuration gives this error:

Code: Select all

$ qtconfig 
QGtkStyle was unable to detect the current GTK+ theme.

(process:23853): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
Anyway to make Qt4.6 to use GTK+ 2 themes?

Edit: my Qt package is from:
qt-4.6.2_2d3d3e5-i486-1.txt
qt-4.6.2_2d3d3e5-i486-1.txz
qt-4.6.2_2d3d3e5-i486-1.txz.asc
Last edited by zAchAry on 17. Oct 2010, 14:34, edited 1 time in total.
Image
Help to make Slackware easier Donate to Salix
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by damNageHack »

I am not familiar with that Qt tweaking.
But can you maybe try ...

Code: Select all

strace qtconfig 
... to see which files are accessed?
I guess some permission issue or probably missing files...
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by zAchAry »

Code: Select all

$ strace -o strace.qtconfig qtconfig
$ grep open strace.qtconfig
http://salix.pastebin.com/q9zbkt5r

Code: Select all

$ which qtconfig
/usr/bin/qtconfig

$ file /usr/bin/qtconfig
/usr/bin/qtconfig: symbolic link to `/usr/lib/qt/bin/qtconfig'

$ file `which qtconfig`
/usr/bin/qtconfig: symbolic link to `/usr/lib/qt/bin/qtconfig'

$ file /usr/lib/qt/bin/qtconfig
/usr/lib/qt/bin/qtconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
:ugeek:
Image
Help to make Slackware easier Donate to Salix
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by damNageHack »

brainstorming to help guessing:
* Qt installation broken
* wrong file permissions
* missing files
* wrong search path for libraries

Please report this issue maybe directly to Slackware due to it is no direct Salix package.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by zAchAry »

Where do I submit a bug report about packages for Slackware?
Image
Help to make Slackware easier Donate to Salix
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by thenktor »

I don't think there is something wrong with the package, but with your system.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by zAchAry »

thenktor wrote:I don't think there is something wrong with the package, but with your system.
What the problem might be, then?
Are you able to use the GTK+ theme rendering feature of Qt with Qt?
Image
Help to make Slackware easier Donate to Salix
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by thenktor »

zAchAry wrote:Are you able to use the GTK+ theme rendering feature of Qt with Qt?
Yes, I'm using it since some weeks. Your pastebin has expired but there where a lot of nasty messages about standard libs that could not be opened. Please try to reinstall Qt:
removepkg qt
slapt-get -u
slapt-get -i qt
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by zAchAry »

No change, same stuff:

Code: Select all

root[~]# removepkg qt
Removing package qt-4.6.2_2d3d3e5-i486-1...
root[~]# slapt-get -u
Retrieving package data [http://salix.enialis.net/i486/slackware-13.1/]...Cached
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.1/]...Cached
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.1/]...Cached
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.1/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.1/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.1/]...Cached
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/slackware-13.1/extra/]...Cached
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.1/extra/]...  Done
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.1/extra/]...Cached
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.1/extra/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.1/extra/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.1/extra/]...Done
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/13.1/]...error attempting to read pkg description
Cached
Retrieving patch list [http://salix.enialis.net/i486/13.1/]...Done
Retrieving checksum list [http://salix.enialis.net/i486/13.1/]...Cached
Retrieving checksum signature [http://salix.enialis.net/i486/13.1/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/13.1/]...Verified
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/13.1/]...Cached
Reading Package Lists...Done
root[~]# slapt-get -i qt
Reading Package Lists...Done
The following NEW packages will be installed:
  qt 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 60.0kB/48.4MB of archives.
After unpacking 116.4MB of additional disk space will be used.

Preparing to install qt-4.6.2_2d3d3e5-i486-1
Installing package qt-4.6.2_2d3d3e5-i486-1...
| Qt (a multi-platform C++ graphical user interface toolkit)
| 
| Qt is a complete and well-developed object-oriented framework for
| developing graphical user interface (GUI) applications using C++.
| 
| 
| 
| 
| 
| Homepage:  http://qt.nokia.com
| 
| 
| 
Done
root[~]# qtconfig 
QGtkStyle was unable to detect the current GTK+ theme.

(process:31793): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
QGtkStyle was unable to detect the current GTK+ theme.

(process:31793): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
Image
Help to make Slackware easier Donate to Salix
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Qt version 4.6.2 and GTK (GtkStyle - qgtkstyle)

Post by damNageHack »

I remember that you said you were using some foreign packages from other locations than only the official Salix repository.
Maybe try to reproduce this weird behaviour on a fresh Salix installation without any foreign packages installed?
Post Reply