Felix Schmidt wrote:
Hi,
I got the following bug (or Feature?) in pyuic :
With Qt Designer I created a QLineEdit with inputMask set to
"\0\x>HHHH;_" (to input a hex-value like "0x12AB").
So far it's fine.
But when I uncheck the "translatable" flag of this inputMask (don't
want it to be translated in any language),
pyuic doesn't escape the backslashes anymore.
I get a "ValueError: invalid \x escape" on line
> self.linHexcode.setInputMask("\0\x>HHHH;_")
With the translatable Flag set again, pyuic correctly generates a
>
self.linHexcode.setInputMask(QtGui.QApplication.translate("AddSlaveDialog",
"\\0\\x>HHHH;_", None, QtGui.QApplication.UnicodeUTF8))
With other string properties (instead of "inputMask") it's the same
thing.
Is there any way to get this fixed? (Of course, i can just ignore this
string in Linguist, but its not the neat solution. Manually escape the
string in Qt Designer isn't either.)
Thanks,
Felix Schmidt
Versions:
Python 2.6
Qt 4.5.3
PyQt 4.6
sip 4.9
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Things is:
It fails on Ubuntu 8.04, KUbuntu 9.04 and Ubuntu 9.04 with Qt 4.5.2.
But it works on Mac OS X with Qt 4.6.0-beta and XPSP3 with Qt 4.3.3. I
believe its a Qt bug.
Mads
--
+-------------------------------------------------------------+
| Mads Ipsen, Scientific developer |
+-------------------------------+-----------------------------+
| QuantumWise A/S | phone: +45-29716388 |
| Nørre Søgade 27A | www: www.quantumwise.com |
| DK-1370 Copenhagen K, Denmark | email: [email protected] |
+-------------------------------+-----------------------------+
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt