Unsolved How to create/connect sqlite3 database, insert data, update data and view all data within the Below PyQT5 GUI class.
-
class MainApp(QMainWindow, ui): def __init__(self, parent=None): QMainWindow.__init__(self) super(MainApp,self).__init__(parent) self.setupUi(self) def main(): app = QApplication(sys.argv) window = MainApp() window.show() app.exec_() if __name__ == '__main__': main()
-
Hi,
Use the Qt SQL module.
-
@SGaist Thanks for replying. Could you please assist me add the syntax for the connection of qtsql within the PyQT5 GUI class above. Thank you again.
-
Did you read the module documentation ?