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. Share data between dialogs
Qt 6.11 is out! See what's new in the release blog

Share data between dialogs

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.2k 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.
  • R Offline
    R Offline
    rcaji
    wrote on last edited by
    #1

    Hi,

    I have two dialogs with one lineEdit in each, and I wanna pass the text of the one lineEdit to the other lineEdit, but I don't know how. Any idea??

    thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      ScottR
      wrote on last edited by
      #2

      Save the value of the first lineedit as a member variable. When you create or use the second dialog, pass it in.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rcaji
        wrote on last edited by
        #3

        Sorry but I don't understand your reply. I'm a beginner and I don't know how to do it. Could you write an example code or any tutorial?
        Thanks.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          Hi. You can use "signal and slots":http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html for that.

          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