#PyQt6 very slow
13 messages · Page 1 of 1 (latest)
is it only the population that's slow? or the whole app?
how many rows are you trying to enter anyway
and do you know how long it takes just to parse that data? without populating the ui itself
i remember searching up your issue a while ago, i don't remember exactly what i found
what does add_1, etc. exactly do
like the code itself, how does it add it the row?
hmm i would assume adding that many widgets is what's making it slow
when i was searching when you first posted the problem, i saw people mention that you should ideally use a TableView instead of a TableWidget
it's a worth a try doing that and seeing if there's any improvement in performance
TableWidget does just inherit TableView anyway, so i would assume the implementation is somewhat similar
it looks like you would need to use a model, i think the abstract table model should be sufficient for you?
heres the doc for table view
https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QTableView.html
heres 2 examples i found
https://www.pythonguis.com/faq/editing-pyqt-tableview/
https://gist.github.com/oglops/5bc295ca260ac9c0f033
hopefully that gives you an idea, if you didnt already know 
any progress?