Can anybody help. I need to pass a variable from QLineEdit to a Qgraphicsview by pressing a button. Any ideas or where I can het help/tutorial/example on this.
Thanks
Can anybody help. I need to pass a variable from QLineEdit to a Qgraphicsview by pressing a button. Any ideas or where I can het help/tutorial/example on this.
Thanks
What exactly are you having problems with? The problem seems trivial - connect a custom slot to the button's clicked() signal and call a method on the graphics view passing it the value of your line edit.
Was having difficulty getting the output to come on the graphicsview but figured it out I think.
Sorry about that I am very new to this
One thing really when you enter text/numbers into a lineedit is there a set variable name or do you make your own?. I can output fine just curious.
Hmm? What's wrong with QLineEdit::value ?
Bookmarks