Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    [Moved] Show data in lineEdit

    General and Desktop
    2
    2
    964
    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.
    • B
      baby_bt last edited by

      I have a table Student(id varchar(10), name varchar(30)). I want to show it on 2 lineEdit (need only 1 record in database to example). I use MySql. How do I do (connected successful)?

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        One way is to use a [[doc:QSqlTableModel]] and a [[doc:QDataWidgetMapper]].

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