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. |
|
|
|
![]() |
Jul 3 2004, 02:00 PM
Post
#2
|
|
![]() Group: Members Posts: 366 Joined: 4-November 03 From: Slovakia Member No.: 850 |
I've discovered another omission: the QDragObject class does exist but all versions of the drag() method seem to be missing. They throw AttributeErrors in Python and grep drag libqte2.so.2 indicates that the class has source() and target() methods but no drag() - as far as I can tell.
I did find a list of Qtopia limitations on the Trolltech web site but it doesn't say anything about QDragObject. Pretty puzzling if you ask me. Does anyone have experience with QDragObject or QTextDrag under Qtopia? z. |
|
|
|
zenyatta QSplitter missing in PyQt on the Zaurus Jun 30 2004, 01:19 AM
Mickeyl Qt/Embedded is based on features which you can ena... Jun 30 2004, 02:01 AM
zenyatta Thanks for the clarification. I've since disco... Jun 30 2004, 02:41 AM
zenyatta OK, the Qtopia Overview says:
QUOTEThe modules rem... Jul 3 2004, 02:04 PM
Mickeyl No idea offhand. From our qte-config.h it seems dr... Jul 3 2004, 03:33 PM
ntrolls I've been trying to teach myself programming i... Sep 3 2006, 03:19 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 05:31 PM |