LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-16-2009, 02:41 PM   #1
rudsonalves
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
kde/qt instalation has no icons to dialogs


Hi,

I'm running a PyQt application in a Slackware64 (current release) and saw that the QMessageBox class don't show me the icons. The same happens with Slackware-current.

In the Slackware 12.0 the icons appear.

The test code can be downloaded from the http://rra.etc.br/linux/python/pyqt/messagebox

Someone can help?
 
Old 07-16-2009, 06:54 PM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Yes - I've noticed this with PyQt4. Try changing KDE's settings. Goto System Settings->Appearance->Style and change Widget Style to Plastique or CleanLooks. It should then show your icons with the message boxes.
 
Old 07-17-2009, 09:47 AM   #3
rudsonalves
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Yes Bgeddy.

But I tried with Kubuntu and icons appeared normally. I compared the folder /usr/share/icons of the Slackware and Kubuntu and saw that have more icons in the Slackware, which means there is no lack of icon, but perhaps some configuration to compile KDE, Qt and PyQt.
 
Old 07-17-2009, 11:15 AM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Hmm - I have just tried this on Kubuntu as, as you say, the icons appear for the "Oxygen" widget style whereas they don't on Slackware current.

Looking at the directories /usr/share/icons/oxygen/{8x8,16x16,22x22,32x32,48x48,128x128,scalable}} it looks like the all the icons are there in Slackware.

Very odd. I must admit that I don't know the ins and outs of a KDE4 build or in fact exactly how all the components are inter-related i.e. icons and dialogs in the component packages. I must admit it's very strange though. I always thought it was a bug in KDE till you pointed out this works in Kubuntu. Thanks for that.
 
Old 07-17-2009, 12:37 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Wink

I just tried specifically setting the messagebox icon with this change to your code :
Code:
def critical_button_clicked(self):
        print "Critical pressed..."
        msg = QMessageBox(self)
	msg.setIconPixmap(QPixmap("/usr/share/icons/oxygen/22x22/actions/dialog-cancel.png"))
	msg.exec_()
This worked in the Oxygen widget style setting of KDE4 so it must have something odd going on in the build of QT/KDE or perhaps the PyQT4 package of Slackware as it works in Kubuntu. It may be worth reporting this to Pat as that's the idea of current in the first place !

Addendum:
OK - I wouldn't report it to Pat just yet. I just tried the same thing in OpenSuse and I couldn't get any icons to display under any widget style setting whatsoever! Possibly a KDE bug after all. Maybe Kubuntu has fixed this or applied some update.

Last edited by bgeddy; 07-17-2009 at 12:54 PM.
 
  


Reply

Tags
icons



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[KDE]Shortcut Icons smaller, Shortcut And Tray icons on 2 lines xeross Linux - Newbie 2 04-10-2008 10:20 AM
LXer: Create GUI dialogs for GNOME and KDE LXer Syndicated Linux News 0 07-26-2006 01:54 PM
kde open/save dialogs consume 50% CPU... Sammael SUSE / openSUSE 0 06-22-2006 06:23 AM
Separate KDE instalation mojo_risin Fedora 1 10-27-2004 03:08 AM
how do I choose KDE or Gnome after instalation dracula2000 Slackware 3 09-16-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration