database connection

This commit is contained in:
2024-11-20 16:36:01 +01:00
parent 3d5035ffb3
commit a9804cbde1
5 changed files with 22 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ class BusinessModel(QAbstractTableModel):
def __getData(self):
cursor = self.con.cursor()
cursor.execute("SELECT * FROM test")
cursor.execute("SELECT * FROM users")
return cursor.fetchall()
def rowCount(self, parent= QModelIndex()):