Unresponsive GUI while append text to QTextedit
-
In that case a QTableView ?
-
@SGaist What is benefit of using QTableView here? There will be more than 1 matrix in the result. So user can select them from treewidget. I can change widget if they help me. If you are available, can you run my project to understand me better please.
-
How exactly do you want show these matrices ?
-
@SGaist In fact, the codes I have given are simplified versions of the project. In real project codes, there are slow operations at other thread. Slow operation iteration counts changing depending on user inputs. I call these operations as periods. Each periods have a result of matrix. In the main window result screen there should be period list and when user clicking one of these periods, the result of that period should be shown as matrix.
-
Well, storing and rendering are two different things.
Nothing stops you from having one matrix per cell.
-
How fast are you are you appending them ?
How big is your text ?
From how many sources do you do that ? -
- My data is ready to append. So i append them directly.
- There are 10-100 QTextEdits. I append 100-200 line to each of QTextEdits. Lines have arround 300 characters.
- I have one vector of vectors source.
By the way, i moved my data source to a different thread. Then emitted signals to append with BlockingQueuedConnection. Gui is responsive now. But its not smooth. I dont know using blockingqueuedconnection instead of queuedconnection is the right way but my gui is responsive while appending strings now.