Hi,
When I initialize a variable of this way:
or what exactly accours? What value is assigned to the variable?
Thanks in advanced
Printable View
Hi,
When I initialize a variable of this way:
or what exactly accours? What value is assigned to the variable?
Thanks in advanced
in the first example an empty string in the second an empty list. :)
Thanks spirit.
You'll also notice this in the documentation.
QString::QString ()
Constructs a null string. Null strings are also empty.
QStringList::QStringList ()
Constructs an empty string list.
and those default constructors are called here as well, without any superficial assignment operation...
You can call some other constructor than the default constructor like this:
HIH
Johannes
Hi people,
Thanks by all answers.