Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

I need a widget suggestion.



  • Hi, I am building an application using PyQt5 together with QtDesigner. And I'm in doubt which widget to use in this situation that I will describe. I have a database where the data that I want to appear on the screen in the form of a table is stored, with the same structure as the database, but I don't know which element of PyQt5 / QtDesigner I use for this need.
    I also wanted to know if it is possible to pass the data from the DB and pass it directly to this widget, or I need to get the data, pass it to a txt file (for example) and then pass it to the widget in PyQt.


  • Lifetime Qt Champion

    Hi,

    Check the Qt SQL module. You can use a QTableView to show your database data.



  • @SGaist Thank you, that's exactly what I wanted.


Log in to reply