Hi everyone,
Hope everything is going well.
I'm beginner, after build&Run following warning occurs:
'QString::null' is deprecated: use QString() [-Wdeprecated-declarations]
May anyone help me to resolve it?
Hi everyone,
Hope everything is going well.
I'm beginner, after build&Run following warning occurs:
'QString::null' is deprecated: use QString() [-Wdeprecated-declarations]
May anyone help me to resolve it?
search your code for both cases and correct as states in the above quote.[ChangeLog][QtCore][QString] QString::null is now deprecated. When
used to construct a QString, use QString() instead. When used to
compare to a QString, replace with QString::isNull().
(By the way, when they say use QString() instead, its meant instead of QString(QString::null); )
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
CodeFreak (4th January 2018)
I didn't pay attention.
It simply solved by replacing QString::null with QString() .
Bookmarks