hey there i tried using the QVector to make my struct into an array but the program crashes when i try to run it. it compiles ok but there seems to be a problem with the way i am referencing the QVector...heres my code below:
links
[0].
n2 = QInputDialog::getInteger(this, tr
("QInputDialog::getInteger()"),
tr("enter second node to link:"), 25, 0, 100, 1, &ok);
if(ok)
integerLabel->setText(tr("%1").arg(links[0].n2));
links[0].n2 = QInputDialog::getInteger(this, tr("QInputDialog::getInteger()"),
tr("enter second node to link:"), 25, 0, 100, 1, &ok);
if(ok)
integerLabel->setText(tr("%1").arg(links[0].n2));
To copy to clipboard, switch view to plain text mode
any help would be much appreciated again
Bookmarks