[Qt-interest] Problem using URL with special characters

Atlant Schmidt aschmidt at dekaresearch.com
Mon Aug 29 13:28:53 CEST 2011


Thiago:

> I can't add the assertion...
>
> The proper fix is to rewrite QUrl in Qt 5, which I'm doing.

  Thanks for the clarification!

                                Atlant

-----Original Message-----
From: Thiago Macieira [mailto:thiago at kde.org]
Sent: Monday, August 29, 2011 07:27
To: qt-interest at qt.nokia.com
Cc: Atlant Schmidt
Subject: Re: [Qt-interest] Problem using URL with special characters

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

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.



More information about the Qt-interest-old mailing list