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 843 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 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

    jsulmJ 1 Reply Last reply
    0
    • V vmjafar

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      • Login

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