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. Transfer data between Forms
QtWS25 Last Chance

Transfer data between Forms

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 794 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.
  • CadNetoC Offline
    CadNetoC Offline
    CadNeto
    wrote on last edited by
    #1

    How can I transfer data between forms ?. Ex...from MainWindow to Dialog......or Dialog_A to Dialog_B.
    Someone have a exemplo to learn

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What kind of data do you have in mind ?

      The usual way with Qt is to use signals and slots but it also depends on how you use your dialogs .

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      CadNetoC 1 Reply Last reply
      0
      • M Offline
        M Offline
        MajidKamali
        wrote on last edited by MajidKamali
        #3

        Class constructor parameters is an option.
        Another option is to use setProperty method for QObject derived classes when creating object, before calling show()

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Is it related to this one?
          https://forum.qt.io/topic/64609/signal-and-slot-passing-data-between-forms/3

          CadNetoC 1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            Is it related to this one?
            https://forum.qt.io/topic/64609/signal-and-slot-passing-data-between-forms/3

            CadNetoC Offline
            CadNetoC Offline
            CadNeto
            wrote on last edited by
            #5

            @mrjj
            Yes....

            1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              What kind of data do you have in mind ?

              The usual way with Qt is to use signals and slots but it also depends on how you use your dialogs .

              CadNetoC Offline
              CadNetoC Offline
              CadNeto
              wrote on last edited by
              #6

              @SGaist

              I have a Dialog with a TableView.....that contains names.....and I wish open another dialog to edit the selected name when I click a pushbutton 'edit'.

              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