Yes, you are right.
And yes I enter it manually.
Problem was solved when I changed problem line to:
tbl_2->setItem(i,j, ptwi = new QTableWidgetItem(QString::number( A[i][j] )));
Yes, you are right.
And yes I enter it manually.
Problem was solved when I changed problem line to:
tbl_2->setItem(i,j, ptwi = new QTableWidgetItem(QString::number( A[i][j] )));
@BlitzorDDD: You could save yourself a lot of time and head-pounding if you used Google and looked up some of the many, many examples on how to use QTableWidget:
https://wiki.qt.io/How_to_Use_QTableWidget
http://www.codeprogress.com/cpp/libr...m=QTableWidget
and you would make many fewer mistakes if you learned how to write a good Qt application by studying the examples and tutorials on the Qt web site:
http://doc.qt.io/qt-5/qtexamplesandtutorials.html
We could spend many hours fixing each new bug you create, or you could teach yourself not to make bugs in the first place.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Yes, yes, I would and I will.
This is just my third program on Qt.
Thank you very much for your links!
Bookmarks