Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Get the value of QML Editbox from c++

Get the value of QML Editbox from c++

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.1k 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.
  • N Offline
    N Offline
    nikhil.patil2010
    wrote on last edited by
    #1

    I have created a QtQuick application with some textboxes in QML. I want to use the value of those textboxes in my c++ code. So how can i fetch those value from c++ code ?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tolszak
      wrote on last edited by
      #2

      I think that:
      http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html
      is what you are looking for. Read it carefully - the safer and recommended approach is to expose some C++ object to Qml and bind your "textbox" properties to it. This way you are able to handle "textbox" properties in C++ code.

      1 Reply Last reply
      0

      • Login

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