To String Conversion error?
-
wrote on 15 May 2013, 13:27 last edited by
@NOUElement.appendChild( xmlDocument.createTextNode(ui->tableWidget_5->rowCount().toString()));@
@'((MainWindow*)this)->MainWindow::ui->Ui::MainWindow::<anonymous>.Ui_MainWindow::tableWidget_5->QTableWidget::rowCount()', which is of non-class type 'int'@
Help please?
-
wrote on 15 May 2013, 13:36 last edited by
Well, AFAIK there is no toString() function defined for integer type... You may be looking for QString::number()
-
you are calling toString() on an integer ?!
Edit: too slow :) -
wrote on 15 May 2013, 13:42 last edited by
Epic, I come from the visual basic edge of this world, you know? :P I'm not that familiar with C++. What can I do to put the rowCount in the Element? Somehow I have to convert it in a string.
-
wrote on 16 May 2013, 05:09 last edited by
1/6