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. Updating model from UI
Forum Updated to NodeBB v4.3 + New Features

Updating model from UI

Scheduled Pinned Locked Moved Unsolved General and Desktop
model binding
2 Posts 2 Posters 854 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vmjafar
    wrote on 12 Jun 2017, 10:17 last edited by
    #1

    Hi
    iam new to QT, i have a model class (class employee) and i want to show some details in text edit,
    is there any way to bind the data from my model to ui and whenever i change some text in textedit ,it should be updated to model and vice versa.
    iam using QT5 with visual studio and not using any qml

    thanks in advance

    J 1 Reply Last reply 12 Jun 2017, 10:46
    0
    • V vmjafar
      12 Jun 2017, 10:17

      Hi
      iam new to QT, i have a model class (class employee) and i want to show some details in text edit,
      is there any way to bind the data from my model to ui and whenever i change some text in textedit ,it should be updated to model and vice versa.
      iam using QT5 with visual studio and not using any qml

      thanks in advance

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Jun 2017, 10:46 last edited by
      #2

      @vmjafar Hi!

      Take a look at http://doc.qt.io/qt-5/model-view-programming.html

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

      1 Reply Last reply
      2

      2/2

      12 Jun 2017, 10:46

      • Login

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