473,785 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[pyqt] Can't show QString textLabel in windows 98 GUI program

hi.

I do a P2P program use PYQT nc .
It work normally in win2000,winXP. But it cann't show Chinese textLabel
in windows98.
For show Chinese textLabel I need convert QString instance to unicode().
But win98 didn't support unicode.
Anyone can tell me how to convert unicode to any visibel codes in chinese
windows system. Thanks.
Ulysses
Jul 18 '05 #1
5 2907
ul********@yaho o.com.cn (ulysses) wrote in message news:<43******* *************** ****@posting.go ogle.com>...

I mean this program can show textlabel,capio n in Win2000,winxp.
Because I use __tr() to translate multilanguage.
qApp.translate( "Form",s,c) return a QString Object. it's a unicode codec.
I can't show it in Windows 98. Anyone can help me. I crazy for it.
thanks million.

My freeware bittorrent download tools build by PYQT 3.8.
www.turbobt.com

Ulysses
Jul 18 '05 #2
ulysses:
I mean this program can show textlabel,capio n in Win2000,winxp.
Because I use __tr() to translate multilanguage.
qApp.translate( "Form",s,c) return a QString Object. it's a unicode codec.
I can't show it in Windows 98. Anyone can help me. I crazy for it.


Unicode support on Windows 98 often requires more effort than on the
Windows NT family which uses Unicode as the native string type. Have a look
at using the Microsoft Layer for Unicode (MSLU). I do not know if QT is
compatible with MSLU.

MSLU:
http://msdn.microsoft.com/library/de...me_systems.asp

Neil
Jul 18 '05 #3
"Neil Hodgson" <nh******@bigpo nd.net.au> wrote in message news:<fN******* *************@n ews-server.bigpond. net.au>...
ulysses:
I mean this program can show textlabel,capio n in Win2000,winxp.
Because I use __tr() to translate multilanguage.
qApp.translate( "Form",s,c) return a QString Object. it's a unicode codec.
I can't show it in Windows 98. Anyone can help me. I crazy for it.


Unicode support on Windows 98 often requires more effort than on the
Windows NT family which uses Unicode as the native string type. Have a look
at using the Microsoft Layer for Unicode (MSLU). I do not know if QT is
compatible with MSLU.

MSLU:
http://msdn.microsoft.com/library/de...me_systems.asp

Neil


Qt don't use MFC or comctrl . I download it .But I still failure.
Jul 18 '05 #4
ulysses:
Qt don't use MFC or comctrl . I download it .But I still failure.


Best information I can find:
http://www.trolltech.com/developer/p...windows98.html

Neil
Jul 18 '05 #5
"Neil Hodgson" <nh******@bigpo nd.net.au> wrote in message news:<fw******* *************@n ews-server.bigpond. net.au>...
ulysses:
Qt don't use MFC or comctrl . I download it .But I still failure.


Best information I can find:
http://www.trolltech.com/developer/p...windows98.html

Neil


Thank you. I get following message.
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Platform Notes - Windows 98 and Me
As for Windows NT, with the following exceptions:

Unicode support:
since Windows 98 does not implement much Unicode, Qt's Unicode support
on Windows 98 is lacking. Note that Qt attempts to hide these
differences - application programs can see that the fonts available
are rather incomplete, but there is generally no need for programs to
care. With other toolkits such as MFC, you often need to recompile.
With Qt, your programs detect and use the capabilities of the Windows
version they run on, that's all.
OMG. That's suck. When my software finished. I find this problem.
Because I develope it in Win2000.
Anyway I have to forget Win98. :(
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2862
by: Ilya Knizhnik | last post by:
Dear All, I am fairly new to Python. I have found it an easy language to learn and a very usefull one for many tasks. Currently I am working on a python project that involves a GUI and it was suggested that PyQt is the best way to design that GUI. However since PyQt is rather new, I have not found much documentation on it, or examples in it. The only useful tutorial/book I have found is at www.opendocspublishing.com/pyqt/ but it is...
4
3126
by: ulysses | last post by:
Hi, I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter. Code sample is following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fileName="test.avi" def saveSomething(aString):
4
5024
by: ulysses | last post by:
hi, I'm working in python 5 months. I think it's very cool language. I do a p2p python program GUI. First I make a software by wxpython. But I find wxpython use many many memory. Second I use PYQT. But memory use still big. But but but when I minimize the windows to taskbar, a fantasy something happened. memory use very very low when windows minimize.
35
7768
by: Vamsi Mudrageda | last post by:
I am kind of new to Python, and after trying and using wxPython, I found it kind of lacking in easy-to-read documentation, speed at loading, and GUI response-time. So I am looking for an another GUI toolkit that is cross-platform for Python, and am leaning toward PyQt (PyGTK is kind of dull looking in comparison). Unfortunately, although TrollTech says Qt is cross-platform, its license strategy has me a bit confused. So here is to...
2
7959
by: Leif B. Kristensen | last post by:
Can somebody point me to a quick example on how to display the result of an SQL query in a PyQt QListBox? I've googled in vain for this. regards, -- Leif Biberg Kristensen http://solumslekt.org/ Validare necesse est
10
5196
by: Volker Lenhardt | last post by:
For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I try to layout my data output in a QScrollView as the central widget. I'd prefer to use QGridLayout, but cannot add it to the scroll view. sc=QScrollView(self) layout=QGridLayout(..., sc.viewport()) sc.addChild(layout) results in a TypeError.
4
1932
by: gregarican | last post by:
I noticed that when I invoked the setCentralWidget() method using PyQt 3.13 on Python 2.3.5 opening and closing a widget associated with a main window would result in a Win32 access violation crash after a couple of times. Here's a generic snippet: class Application_Window(QMainWindow): def __init__(self): QMainWindow.__init__(self,None,'application main window',Qt.WDestructiveClose)
3
3070
by: Marcpp | last post by:
Hi, I'm introducing to program in python + pyqt. I have a main window that call a second window (to introduce a info with textedit) when press the second window button I need to return to the main window the info introduced in the second window. I've seek in the pyqt doc examples but i don't find it. Have you any example?
0
1426
by: kang jia | last post by:
hi currently i am doing this search function for car booking website. it can search through either car seats or CarModel. it seems it able to do search function, however i small problem occurs to me. As i would also like to show the customer whether the car is available or not available. Basically it is car status at the moment. However, i am not sure how to do this. my ideas is that if car_inventory>0, show available, otherwise show Not...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.