Ok, I didn't see this before:
QList<QString>* xmlData::returnList()
{
&list;
}
QList<QString>* xmlData::returnList()
{
&list;
}
To copy to clipboard, switch view to plain text mode
QList<QString>* function()
{
qDebug() << Blist.at(0) ; // printing the value at index 0
return &Blist;
}
QList<QString>* function()
{
qDebug() << Blist.at(0) ; // printing the value at index 0
return &Blist;
}
To copy to clipboard, switch view to plain text mode
are both wrong. The first more than the second.
Do you know the meaning of &list? what is the difference with *list?
Bookmarks