Reply
Thread Tools
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: 451 | Thanked: 424 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:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 
trx's Avatar
Posts: 80 | Thanked: 237 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; 2012-07-05 at 22:45.
 
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: 1,548 | Thanked: 7,510 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
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 
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


 
Forum Jump


All times are GMT. The time now is 04:51.