Answer the question
In order to leave comments, you need to log in
Is it possible to implement ordered insertion in QTableView?
Good day!
The situation is this - I use QTableView to display the state of the input data stream. Those. I have the vertical and horizontal header disabled and the "Tables" element is a cell with a PID/LID data pair and a color. It turns out that the columns and rows do not have any names, they are not responsible for anything.
Before adding data to the table for the first time, I initially just sort the array with pids / leads and sequentially add them to the table. The table is sorted, first there are cells with PID==0, sorted by LID, then with PID==1, and so on.
Is it possible to implement ordered insertion at all? Without sorting the original array, and so that you can then insert cells into the table while maintaining order? Or maybe something else should be used for such purposes?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question