Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. how to transfer data from one interface to another
Forum Updated to NodeBB v4.3 + New Features

how to transfer data from one interface to another

Scheduled Pinned Locked Moved Unsolved Game Development
5 Posts 4 Posters 1.0k 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.
  • milhaoM Offline
    milhaoM Offline
    milhao
    wrote on last edited by
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • milhaoM milhao

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

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

      milhaoM 1 Reply Last reply
      0
      • JonBJ JonB

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

        milhaoM Offline
        milhaoM Offline
        milhao
        wrote on last edited by
        #3

        @JonB a form that qt-creator creates

        jsulmJ 1 Reply Last reply
        0
        • milhaoM milhao

          @JonB a form that qt-creator creates

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #4

          @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
          1
          • D Offline
            D Offline
            DaShubWubDub
            wrote on last edited by
            #5

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

            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