3
I’m developing a graphical Python desktop application using Pyqt4 (Qt Designer), my doubt is about which component use to display on my screen frmTelaPesqAluno
records of an SQL query, and how to use it? It is a component similar to the DataGridView
Visual Studio or a Grid that I need to use to list the query records.
I am in doubt if I should use a Qtablewidget or Qtableview, I have never used a grid in Python.
– gato
To
QTableView
is simpler and is actually used internally byQTableWidget
. Almost always you will be with the most complete and that allows better organization of the code. The simplest is not compared to the existing in . Net.– Maniero
There is an example of Qtableview?
– gato
It’s full of examples but not what you wanted in the question: https://www.google.com/search?q=qtablew+example
– Maniero
I want to send the result of an SQL query to Qtableview.
– gato
Then you have to ask another question but you have to show what you’ve tried to do.
– Maniero
I will try to use Qtablewidget from the example you gave me.
– gato