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. Help With variables
Forum Updated to NodeBB v4.3 + New Features

Help With variables

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 2.0k 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.
  • M Offline
    M Offline
    MathSquare
    wrote on last edited by
    #1

    How do I get or change in diffident class or void?

    [[Merged some variable related questions into this one, Tobias]]

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I moved this out of the experimental QnA area...

      Your question is so vague that it is impossible to answer it though.

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

        How to Use and set Variables from other struct i think it is called (void)?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MathSquare
          wrote on last edited by
          #4

          How to put a qlineedit text into a variable?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goblincoding
            wrote on last edited by
            #5

            Your question is very vague...assuming you want to extract the text to a QString:

            @
            QString yourString = yourLineEdit->text();
            @

            http://www.goblincoding.com

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              Please go and read a book on C++ before starting to code. You will run into trouble if you do not take that time.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MathSquare
                wrote on last edited by
                #7

                Dosen't Work

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  b1gsnak3
                  wrote on last edited by
                  #8

                  the only reason I would think that goblins code didn't work for you is either you have the line edit declared like:

                  @QLineEdit yourLineEdit;@

                  in which case

                  @QString yourString = yourLineEdit.text();@

                  However, as Tobias said... Start reading some basic C++ book before getting into programming.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goblincoding
                    wrote on last edited by
                    #9

                    "Learn C++":http://www.learncpp.com is a nice, but basic reference as a starting point.

                    http://www.goblincoding.com

                    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