Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#1
I've installed this package python2.5-qt4-doc. Description says Documentation and examples for pyqt4, but I don't seem to find out how to use it or where it is located.. Any idea?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#2
Waaaitforit I've been fighting with docpurge today as it mercilessly deletes all docs and examples in the name of free space preservation. Make sure you download the latest version 4.7-maemo2 which should have a workaround for this. You have a qtdemo app in the applications list for a quick tour and the actual code/docs in /usr/share/python2.5-qt4-doc
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#3
qt demo in app list does not launch. It appears to be launching then closes. I was able to run some demos in the /usr/share/python2.5-qt4-doc, some however do not launch and say that they require some libraries like QtOpenGL for example in hellogl, from where do I get that?
 
Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#4
and btw, thanks a lot for these demos and tutorials
 
Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#5
ok found out I was using 4.7-maemo1, I'm trying to update now to 4.7-maemo2, however after update it say unable to update, update file corrupted
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#6
Originally Posted by tgalal View Post
qt demo in app list does not launch. It appears to be launching then closes.
Launches for me... Which version of python2.5-qt4-doc do you have exactly ? I had the same issue with -maemo1, -maemo2 should have this fixed.

I was able to run some demos in the /usr/share/python2.5-qt4-doc, some however do not launch and say that they require some libraries like QtOpenGL for example in hellogl, from where do I get that?
The OpenGL module is optional, I just added dependencies for those that are shown in the demo app. You need the python2.5-qt4-gl package from pyqt (but there are other non-pyqt dependencies you might need as well, but alas I don't know those package names by heart).

So, do an 'apt-get install python2.5-qt4-gl' as root to get it. If you have plenty of room on your flash, you can do 'apt-get install python2.5-qt4' which will install ALL python and Qt modules. Beware, that does take up a LOT of space - that's why I don't do that by default !

EDIT: It's python2.5-qt4-gl, not python2.5-qt4-opengl, duh
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-02-01 at 01:41.
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
Posts: 107 | Thanked: 73 times | Joined on Jan 2010
#7
Originally Posted by tgalal View Post
qt demo in app list does not launch. It appears to be launching then closes. I was able to run some demos in the /usr/share/python2.5-qt4-doc, some however do not launch and say that they require some libraries like QtOpenGL for example in hellogl, from where do I get that?
The same here, launching it from terminal:

/usr/share/python2.5-qt4-doc/examples/demos/qtdemo/qtdemo.py -fullscreen
Traceback (most recent call last):
File "/usr/share/python2.5-qt4-doc/examples/demos/qtdemo/qtdemo.py", line 54, in <module>
from mainwindow import MainWindow
File "/home/opt/maemo/usr/share/python2.5-qt4-doc/examples/demos/qtdemo/mainwindow.py", line 8, in <module>
from menumanager import MenuManager
File "/home/opt/maemo/usr/share/python2.5-qt4-doc/examples/demos/qtdemo/menumanager.py", line 4, in <module>
from PyQt4 import QtCore, QtGui, QtHelp, QtXml
ImportError: libQtNetwork.so.4: cannot open shared object file: No such file or directory

Fixed just installing the missing libqt4-network library.

Niko
 

The Following User Says Thank You to nicola.mfb For This Useful Post:
Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#8
I removed and tried to re-install, now I'm getting a Hash Sum mismatch
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#9
There is something wrong with the autobuilder. For some reason it compiled the package twice, that causes the mismatch. I'll upload a new version to hopefully correct that (and also the hidden QtNetwork dependency that I missed due to something else installing it unrelated to PyQt).

Long story short, there should be a -maemo3 version in testing shortly that fixes both issues.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 246 | Thanked: 2,574 times | Joined on Jan 2010 @ Egypt, Cairo
#10
works flawlessly now thanks a lott
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:34.