OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> QSplitter missing in PyQt on the Zaurus
zenyatta
post Jun 30 2004, 01:19 AM
Post #1





Group: Members
Posts: 366
Joined: 4-November 03
From: Slovakia
Member No.: 850



Hi all,

The following Python script runs fine on the big box but fails on the Z, saying name 'QSplitter' is not defined:
CODE
#!/usr/bin/env python
import sys
from qt import *
app=QApplication(sys.argv)
split=QSplitter(Qt.Vertical, None)
label1=QLabel(split)
label1.setText("Test 1")
label2=QLabel(split)
label2.setText("Test 2")
split.showMaximized()
app.setMainWidget(split)
app.exec_loop()

Further, grep QSplitter `ipkg files python-pyqt` returns nothing - so the class isn't even mentioned in the Zaurus implementation. The Python packages I'm using come from the 3.3.6-pre1 feed.

Given that QSplitter is such a basic piece of UI I'm quite puzzled as to why it is absent. I can work around this limitation for now, fortunately, but someday I may well need a split pane so it's quite discomforting to see it missing. Is it perhaps there and I'm just looking in the wrong place? Has it been deprecated & replaced by something else? Can anyone provide an explanation? Any advice appreciated.

z.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
zenyatta
post Jul 3 2004, 02:04 PM
Post #2





Group: Members
Posts: 366
Joined: 4-November 03
From: Slovakia
Member No.: 850



OK, the Qtopia Overview says:
QUOTE
The modules removed from Qt due to their large size, speed or because they do not belong or are not necessary on an embedded device. For some of the modules, a description is provided if it is not obvious why this was left out of the Qt/Embedded offering for Qtopia.
It then lists drag and drop among those modules like so:
QUOTE
UI:  QTextCodec modules, drag and drop, free type fonts, extra desktop styles (i.e. Motif) were replaced by Qtopia style plugins
I conclude that drag & drop is not available in Qtopia. Can anyone confirm this?

In any case, the semi-complete QTextDrag implementation has just cost me quite a lot of time. Qtopia docs say if you're using whatever's not supposed to be available you'll get a compile error. How come, then, that PyQt compiles and produces this (qt.py)?:
CODE
class QTextDrag(QDragObject):
       def __init__(self,*args):
               libqtc.sipCallCtor(123,self,args)
Is this an Opie-specific libqte2 with a half-baked QDragObject?

z.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st December 2014 - 11:03 PM