Posts: 3 | Thanked: 1 time | Joined on Jul 2012
#1
Ive been learning python and pygame. Made a couple simple games and got them running on my n900.

Ive just started looking in qml. I tried an example, but it seems Im missing qtdeclarative.

Do I just need to install qt4.7 or later ?
 
jd4200's Avatar
Posts: 450 | Thanked: 415 times | Joined on Apr 2010 @ England
#2
I'll probably be no help, but I'll take a stab: do you have pyside installed.
__________________
BTC:
1JD42oobVXGywSaHue6VLMpybGkNe3jLis
 
trx's Avatar
Posts: 74 | Thanked: 209 times | Joined on Dec 2010 @ Serbia
#3
Originally Posted by newpyguy View Post
Ive been learning python and pygame. Made a couple simple games and got them running on my n900.

Ive just started looking in qml. I tried an example, but it seems Im missing qtdeclarative.

Do I just need to install qt4.7 or later ?
yes. that should provide QtDeclarative library..

TRX.

Last edited by trx; 07-05-2012 at 06:45 PM.
 
Posts: 3 | Thanked: 1 time | Joined on Jul 2012
#4
I do have pyside, but it doesnt have qtdeclarative either.

I just read that CSSU(which I have) already has qt4.7. I can see that libqt4-declarative is installed. But still python cant find it.

from PyQt4 import QtDeclarative

Thats correct, isnt it ? I get "ImportError: cannot import name QtDeclarative"
 
Posts: 755 | Thanked: 2,541 times | Joined on Apr 2010 @ Czech Republic
#5
Originally Posted by newpyguy View Post
from PyQt4 import QtDeclarative

Thats correct, isnt it ? I get "ImportError: cannot import name QtDeclarative"
Nope, you have to use PySide:
Code:
from PySide import QtDeclarative
Also make sure you the python-pyside package installed - it should bring in all PySide modules and dependencies.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader

Thanks to everyone who voted for modRana & Mieru in the Maemo.org coding competition !
 
Posts: 3 | Thanked: 1 time | Joined on Jul 2012
#6
I did try pyside before.

Originally Posted by MartinK View Post
Also make sure you the python-pyside package installed - it should bring in all PySide modules and dependencies.
But was missing the extra modules which ^that got me. Thanks.
 

The Following User Says Thank You to newpyguy For This Useful Post:
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 09:01 PM.