Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populating ControlList takes veeeryyyy loooong time #14

Open
TriYop opened this issue Jul 26, 2019 · 1 comment
Open

populating ControlList takes veeeryyyy loooong time #14

TriYop opened this issue Jul 26, 2019 · 1 comment

Comments

@TriYop
Copy link

TriYop commented Jul 26, 2019

As populating a ControlList with a few thousands of lines, each with a few columns (it works the same with single columns), my UI hangs for some long minutes before getting responsive again.

Here is sample code to reproduce

my_list.value = [[x] for x in range(5000) ]

By Reading QT forums, I went on the following topic about performance issues with QTableWidget.
https://bugreports.qt.io/browse/QTBUG-57848

Is it possible to disable resizecolumn by default instead of enabling it ?
Or at least, use QT's ResizeToContents only upon content insertion complete when mass replacing value ?

@MicBoucinha
Copy link
Collaborator

Hi,

When creating the ControlList, you can pass resizecolumns=False as an argument and that should take care of what you are after.

Please let me know if you were able to do it or if you need further assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants