Originally Posted by tbscope Qt Code: Switch view Node *node;node->setText(QObject::tr("Node %1").arg(seqNumber +1)); Node *node; node->setText(QObject::tr("Node %1").arg(seqNumber +1)); To copy to clipboard, switch view to plain text mode This is wrong and will crash. You need to initialise node first. Node *node = new Node; If i try to initialize *node, I get an error that says invalid use of incomplete type Node.
Node *node;node->setText(QObject::tr("Node %1").arg(seqNumber +1));
Node *node; node->setText(QObject::tr("Node %1").arg(seqNumber +1));
Forum Rules
Bookmarks