QTabWidget, how to load some data in QScrollArea from a database inside QTabWidget
Unsolved
General and Desktop
-
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
User1
Phone , addressUser2
Phone, addressUser3
Phone, addressI 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