E
E
erfari2018-04-13 02:44:21
Python
erfari, 2018-04-13 02:44:21

How to bind QTableView to the result of a query from the database?

Hello! I drowned in search of a solution to my problem and decided to ask for help after all. The bottom line is to display the table in QTableView (not Widget, important!) from sqlite3 via cursor.execute(also important). Could you write a detailed algorithm for linking QTableView + button + cursor.execute?
What confuses me is model, which is said to be a necessity.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question