Hi,
When I initialize a variable of this way:
orwhat exactly accours? What value is assigned to the variable?Qt Code:
To copy to clipboard, switch view to plain text mode
Thanks in advanced
Hi,
When I initialize a variable of this way:
orwhat exactly accours? What value is assigned to the variable?Qt Code:
To copy to clipboard, switch view to plain text mode
Thanks in advanced
in the first example an empty string in the second an empty list.![]()
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
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:
Qt Code:
To copy to clipboard, switch view to plain text mode
HIH
Johannes
Hi people,
Thanks by all answers.
Bookmarks