[Qt-interest] QStringListModel setStringList usage

J-P Nurmi jpnurmi at gmail.com
Wed Dec 22 10:11:42 CET 2010


On Wed, Dec 22, 2010 at 10:02 AM, Francisco Gonzalez <gzmorell at gmail.com> wrote:
>        QStringListModel *myModel = new QStringListModel();

You want to assign to the member variable, not to a local variable,
right? So it should be:

myModel = new QStringListModel();

--
J-P Nurmi



More information about the Qt-interest-old mailing list