[Qt-interest] qwidget performance
Konrad Rosenbaum
konrad at silmor.de
Wed Jun 15 09:03:16 CEST 2011
On Tuesday 14 June 2011, Tomasz Grobelny wrote:
> I was doing a test where I create a lot of widgets (I used QPushButtons
> as an example) in one window (inside QScrollArea; only tiny portion of
> the created widgets are visible at any given time). As long as there are
> under 10000 widgets the creation time is acceptable but then is starts
> to grow quite quickly. Creating 1000000 widgets is virtually impossible.
> Is there any way to improve performance in this case (except from
> dropping qwidgets in favor of drawing rectangles manually).
If you really want to show a big grid of data, then QTableView is the normal
way to go. You can assign custom widgets for editing through a customized
delegate.
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110615/2cb2c6e1/attachment.bin
More information about the Qt-interest-old
mailing list