A
A
artto82016-08-11 11:21:49
Qt
artto8, 2016-08-11 11:21:49

Which widget to use for fast line output in Qt?

Hello, I need to display very fast (every 1-10 milliseconds) lines on the screen. At first I used QPlainTextEdit for this, but it didn’t really suit such a task. the number of displayed lines is fixed (1000) and it is bad to remove the first lines with it. Right now I'm using QListWidget, but it's very slow for such a task. I thought about making my own model for QListView, based on a circular buffer, but when displaying to a widget, I still have to deal with deleting / inserting elements (i.e. drive a lot of memory). Maybe someone faced with such a problem, advise the implementation option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2016-08-11
@Zifix

QListView will most likely be much faster, but it makes no sense to make the update rate faster than 33ms, Alexander Ananiev correctly noted this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question