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. How to display data + button in a window
QtWS25 Last Chance

How to display data + button in a window

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 191 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.
  • P Offline
    P Offline
    POppDIdi
    wrote on last edited by
    #1

    Hi, I'm a beginner in c++ programming, I want to create a small program that displays the data in the database (I have already created a database) with buttons (like modify or delete) in a window.
    Also, how can I link each button to records on the same line so that a click produces an event?
    It looks like this as shown in the picture.
    Thanks in advance !!!!

    tena alefa.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      To get started:

      • QSqlTableModel
      • QTableView
      • QStyledItemDelegate

      The first to get your database data.
      The second to show it
      The third to create a custom control that will show the buttons you need.

      Don't start with adding widgets per line. Jt's going to bite you later on.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - 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