@suslucoder have you tried setSelectionMode(QAbstractItemView::SingleSelection); on your table widget? Seems like you try to implement behaviour that's already there.
https://doc.qt.io/qt-5/qabstractitemview.html#SelectionMode-enum
https://doc.qt.io/qt-5/qabstractitemview.html#selectionMode-prop
@suslucoder said in How to add datas in table widget with increasing the row number:
It should start to add from row 0 to the end of row count
And what is the problem? Set row count via https://doc.qt.io/qt-5/qtablewidget.html#setRowCount and add your data...
@Ketan__Patel__0011 said in How to get first element of QList:
try this way
QList<int> index;
index.push_back(10);
index.push_back(20);
index.push_back(30);
index.push_back(40);
index.push_back(50);
qDebug() << index.at(0); /// Answer Is 10
OP already figured out the function for obtaining the first element: https://forum.qt.io/post/650999 Their current problem is how to avoid calling it inside a loop.
@nagesh said in Adding right click menu on QTableWidget:
@suslucoder
if you want to create the chart only during right click, comment above lines from constructor.
grafik_olustur(); //create chart first
timer->start(500); //adds values to chart
this was the answer im searching for. Sorry for, i couldnt explain my question clearly.
@suslucoder said in Open the selected port:
I solved it, you can delete my post.
No, the solved posts don't get deleted. They remain for the benefit of other forum users having same/similar issues.
It's a community driven approach, opposite to a "my problem only" driven approach
@suslucoder
ok im not sure what s does.
Anyway, could you try
(in on_Serial_Read)
memset(dizi, 0, 14);
memcpy(dizi, data.constData(), data.size());
in place ot the line
memcpy(dizi, data.constData(), 14);
and tell if it still stops at 15 ?
@SimonSchroeder I want to update my progress bar, if one of these values greater than 0. For example if the dizi[1] > 0, update.
I dont want to see dizi[0]. Because of it i started from 1