QTableWidget creates a QTableWidgetItem for every cell in memory. At 100k rows × 6 columns = 600k items = 200MB+ RAM, and selectAll() hangs the UI. For the worklist table (~500 devices max), ...