Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QTabWidget, how to load some data in QScrollArea from a database inside QTabWidget

    General and Desktop
    qtabwidget qscrollarea database sqlite
    2
    2
    211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      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

      User1
      Phone , address

      User2
      Phone, address

      User3
      Phone, address

      I want this field scrollable. I haven't coded anything yet. Can any one please help?
      Thanks in advance

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @moslehuddin last edited by

        @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

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • First post
          Last post