Help With variables
-
How do I get or change in diffident class or void?
[[Merged some variable related questions into this one, Tobias]]
-
I moved this out of the experimental QnA area...
Your question is so vague that it is impossible to answer it though.
-
How to Use and set Variables from other struct i think it is called (void)?
-
How to put a qlineedit text into a variable?
-
Your question is very vague...assuming you want to extract the text to a QString:
@
QString yourString = yourLineEdit->text();
@ -
Please go and read a book on C++ before starting to code. You will run into trouble if you do not take that time.
-
Dosen't Work
-
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.
-
"Learn C++":http://www.learncpp.com is a nice, but basic reference as a starting point.