Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTabWidget, how to load some data in QScrollArea from a database inside QTabWidget

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtabwidgetqscrollareadatabasesqlite
2 Posts 2 Posters 493 Views
  • 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 Offline
    M Offline
    moslehuddin
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • M moslehuddin

      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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved