Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTabWidget, how to load some data in QScrollArea from a database inside QTabWidget
moslehuddin last edited by
I have a database which have fields like: name, address, phone no etc. Now, I want to load these properties within a Scroll area inside a tab from the database. Like:
Tab1 | Tab2. Tab3. Tab4
Phone , address
I want this field scrollable. I haven't coded anything yet. Can any one please help?
Thanks in advance
@moslehuddin You should be more precise when asking a question. What exactly are you asking? How to get data from a database? How to show it? Both? How to use QScrollArea?
Qt SQL: https://doc-snapshots.qt.io/qt5-5.14/qtsql-index.html
How to show the data: https://doc.qt.io/qt-5/qsqltablemodel.html and https://doc.qt.io/qt-5/qtableview.html
How to use QScrollArea: https://doc.qt.io/qt-5/qscrollarea.html