maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   qml / qtdeclarative (https://talk.maemo.org/showthread.php?t=85290)

newpyguy 2012-07-05 22:02

qml / qtdeclarative
 
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 2012-07-05 22:25

Re: qml / qtdeclarative
 
I'll probably be no help, but I'll take a stab: do you have pyside installed.

trx 2012-07-05 22:43

Re: qml / qtdeclarative
 
Quote:

Originally Posted by newpyguy (Post 1232626)
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.

newpyguy 2012-07-06 17:32

Re: qml / qtdeclarative
 
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"

MartinK 2012-07-06 17:53

Re: qml / qtdeclarative
 
Quote:

Originally Posted by newpyguy (Post 1233038)
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.

newpyguy 2012-07-06 20:09

Re: qml / qtdeclarative
 
I did try pyside before.

Quote:

Originally Posted by MartinK (Post 1233049)
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.


All times are GMT. The time now is 03:37.

vBulletin® Version 3.8.8