This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] KDE 4.5 and KEditListBox

Tags: None
(comma "," separated)
User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

[SOLVED] KDE 4.5 and KEditListBox

Sat Nov 27, 2010 1:42 pm
I'm a very beginner in QT/KDE coding so I guess this question may be kind of lame.

I've built a plasmoid in python and on its settings page it's using KEditListBox and KIntNumInput. The plasmoid stopped to work after I upgraded to Kubuntu 10.10 which ships with KDE 4.5. In order to troubleshoot I downloaded QT Designer and edited my config.ui file. I was surprised to find out that in the widget box (the pane on the left), I couldn't find any of the widgets mentioned above.

Does someone here knows what is missing on my system? I'd like to update the dependencies list of my plasmoid before it gets downvoted as "not working".

Last edited by gdr on Sun Dec 12, 2010 10:56 am, edited 1 time in total.


User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KDE 4.5 and KEditListBox

Fri Dec 10, 2010 7:39 pm
What do you mean by "stopped to work"? What are the errors?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 11:34 am
The problem is that there are no errors. The setting page is now displaying blank space in place where the widgets should be.

Take a look at http://kde-look.org/content/preview.php?preview=2&id=134032&file1=134032-1.png&file2=134032-2.png&file3=&name=Google+Calendar+Agenda - on an out of the box KUbuntu, instead of the KEditListBox and two numeric inputs on the bottom, there is just gray space with no indication that there should be some widgets. There are no errors in console.

I will try to install kubuntu in virtualbox to make a screenshot, on my system it misteriously started working after I've downloaded lots of -dev packages to compile something else.


User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 11:48 am
Here's how it looks like:
http://imgur.com/EzrBr.png

Here's the output from command line. I was wrong and there was an error:
Code: Select all
"QFormBuilder was unable to create a custom widget of the class 'KEditListBox'; defaulting to base class 'QGroupBox'."
"QFormBuilder was unable to create a custom widget of the class 'KIntNumInput'; defaulting to base class 'QWidget'."


Full output:
http://gdr.pastebin.pl/32064


User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 2:02 pm
Can you paste the relevant code?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 2:51 pm
The configuration is using KConfigXT. The UI XML is here: https://github.com/gjedeer/gcal-plasmoi ... /config.ui

I don't know what code besides that can be relevant - the only thing I had to write in Python code was
Code: Select all
self.setHasConfigurationInterface(True)

and confgChanged hook: https://github.com/gjedeer/gcal-plasmoi ... ain.py#L69


User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 6:13 pm
Strange indeed, as in trunk it works perfectly here:

http://i.imgur.com/uXS39.png

It looks to me like a run-time dependency problem.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 6:43 pm
It must be some misconfiguration in the system. Like I said, after installing development packages it started working - but I need to find a way to identify what is missing and how users can fix it.

BTW - I have just done another test: on raw KUbuntu,
Code: Select all
from PyKDE4.kdeui import KEditListBox
succeeded, so the widget is there, but somehow KConfigXT fails to see it.


User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KDE 4.5 and KEditListBox

Sat Dec 11, 2010 8:20 pm
I'd wager that the PyKDE4 designer plugins are missing. What's the content of your Python site-packages directory, under PyQt4/uic/widget-plugins ?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
gdr
Registered Member
Posts
10
Karma
0
OS

Re: KDE 4.5 and KEditListBox

Sun Dec 12, 2010 10:40 am
The content is:
http://gdr.pastebin.pl/32117

But it's the same on my box where it's working. However after playing with strace I have found this:
http://gdr.pastebin.pl/32118 vs http://gdr.pastebin.pl/32119 on my box.

I'm guessing that kdewidgets.so is the right file so I checked with apt-file and it belongs to kdelibs5-dev. Installing it made the settings panel work, but I doubt any user would install 177 MB of dependencies to have a calendar :|

Anyway - thank you, I would never find it without your help. I'm off to file a packaging bug at Ubuntu.


User avatar
gdr
Registered Member
Posts
10
Karma
0
OS


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient