[Qt-interest] Problem using URL with special characters
Thiago Macieira
thiago at kde.org
Mon Aug 29 13:27:06 CEST 2011
On Monday, 29 de August de 2011 07.22.41, Atlant Schmidt wrote:
> Thiago:
>
> If:
>
> 1. It's "the same mistake that everyone does" and
>
> 2. "QUrl's ... constructor is unusable"
>
> It's not really "everyone's mistake"; it's a bug in Qt.
>
> Now if the design of QUrl can't be fixed so its constructor
> must remain unusable, maybe Qt needs to replace the construc-
> tor with the printing of an error message and an ASSERT(false)
> or some other construct that will prevent "everyone" from
> blundering into this design problem?
I can't add the assertion because there is valid code using the constructor
and has been tested. The fact that the design is flawed doesn't mean people
can't work around the problems.
It was incorrect to say it's unusable. It is usable, under a very limited set
of circumstances.
The proper fix is to rewrite QUrl in Qt 5, which I'm doing.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110829/0a37b252/attachment.bin
More information about the Qt-interest-old
mailing list