Jun 22 2006, 06:24 AM
Post
#1
|
|
|
Group: Members Posts: 32 Joined: 29-October 04 Member No.: 5,265 |
I've tried a couple of "Hello, world" programs on my Zaurus. Both of them almost work, and I'm thrilled! except that "Hello, world!" doesn't show up on either of them.
Here's one of the programs (the simpler of the two): CODE import sys from qt import * myapp = QApplication(sys.argv) mylabel = QLabel("Hello, world!", None) mylabel.resize(120, 30) myapp.setMainWidget(mylabel) mylabel.show() myapp.exec_loop() I've tried both of these programs on my Linux desktop, and the text shows up just fine there. I suspect it might have something with font settings, but I'm just barely learning Qt, and don't know enough about it to know for sure. What is the cause of this difficulty, and how can I fix it? |
|
|
|
![]() |
Jul 30 2006, 12:53 AM
Post
#2
|
|
|
Group: Members Posts: 1,497 Joined: 12-November 03 From: Germany Member No.: 907 |
Sounds like the default font is not found. Try to use a QPEApplication instead -- this will set the correct default font.
|
|
|
|
snowfarthing Pyqt Won't Display Text Jun 22 2006, 06:24 AM
freizugheit It works on my SL-5600.
Maybe it was due to the P... Jun 22 2006, 11:25 PM
snowfarthing Unfortunately, that won't work for me: I... Jun 23 2006, 05:39 AM
snowfarthing I've had the opportunity to test a couple of o... Jul 29 2006, 12:34 PM
milokp QUOTE(snowfarthing @ Jun 22 2006, 09:24 AM)I... Sep 5 2006, 05:09 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 08:00 PM |