* Kobus Jaroslaw <[email protected]> [2015-07-31 07:46:07 +0000]: > If you say not to differentiate empty and null states, some questions arise: > 1) Why we have isNull and isEmpty at the same time? > 2) Why their implementations are different? > 3) What would be the advice on what to use in general: isNull of isEmpty?
See the documentation of QString::isNull():
Qt makes a distinction between null strings and empty strings for
historical reasons. For most applications, what matters is whether
or not a string contains any data, and this can be determined
using the isEmpty() function.
Florian
--
http://www.the-compiler.org | [email protected] (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
pgpj9g2oX4dOl.pgp
Description: PGP signature
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
