![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
What do you mean by "stopped to work"? What are the errors?
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
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. |
![]() Registered Member ![]()
|
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:
Full output: http://gdr.pastebin.pl/32064 |
![]() Administrator ![]()
|
Can you paste the relevant code?
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
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
and confgChanged hook: https://github.com/gjedeer/gcal-plasmoi ... ain.py#L69 |
![]() Administrator ![]()
|
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."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
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,
|
![]() Administrator ![]()
|
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."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
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. |
![]() Registered Member ![]()
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient