Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved how to transfer data from one interface to another

    Game Development
    4
    5
    218
    Loading More Posts
    • 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.
    • milhao
      milhao last edited by

      How do I transfer data from one interface to another, for example: from interface A to interface B, the name and race that are entered from interface A must appear on interface B.
      how do i do it?

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @milhao last edited by

        @milhao
        What is an "interface"? Your questions are often very vague! :)

        milhao 1 Reply Last reply Reply Quote 0
        • milhao
          milhao @JonB last edited by

          @JonB a form that qt-creator creates

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @milhao last edited by jsulm

            @milhao Still not clear what you mean.
            If you are asking how to access your UI then you do it like this:

            QString text = ui->textEdit->toPlainText();
            

            So, you access the widgets via ui->
            If this is not what you are asking then please explain better.

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

            1 Reply Last reply Reply Quote 1
            • D
              DaShubWubDub last edited by

              Set layout to widget that is showing.
              Then add qlinedit to the layout using add widget

              1 Reply Last reply Reply Quote 0
              • First post
                Last post