Planet Python RSS
210 subscribers
18.5K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python GUIs: Getting a Value from a Model Using Row-Column Indices — How to retrieve data from a Qt model using row and column integers

Link: https://www.pythonguis.com/faq/get-value-from-model-through-pair-of-integers-representing-row-and-column/


How do I retrieve a value from a QAbstractTableModel using a pair of integers (row and column), for example when clicking a button, rather than clicking on a cell in a QTableView?

When you're workin
Python GUIs: Passing Arguments to Threaded Functions in PyQt6 — Understanding the difference between passing a function and calling a function when using QThreadPool and QRunnable

Link: https://www.pythonguis.com/faq/delay-in-signal-from-thread/


I'm running a long-running function in a separate thread using QThreadPool and a QRunnable worker. When I pass the function without arguments, it runs correctly in the background. But when I try to p