Read text box in qt form

Get things done in Qt Designer.

Read text box in qt form

Postby GaryVass » Thu Sep 27, 2012 8:22 pm

Hi,

How do you read text from a QT form? I have looked at the examples, and have tried tmpTicker = txtTicker.text (were txtTicker is a QTextBox), and have tried it with txtTicker!text but have not been able to get text passed back to Q7Basic.

Thanks.
GaryVass
 
Posts: 109
Joined: Wed May 04, 2011 8:03 pm

Re: Read text box in qt form

Postby Henning » Thu Sep 27, 2012 10:17 pm

Hi Gary,

Untested, does txtTicker!toPlainText make any difference?

/Henning
Henning
 
Posts: 522
Joined: Fri Aug 13, 2010 6:29 pm

Re: Read text box in qt form

Postby GaryVass » Thu Sep 27, 2012 10:44 pm

No, no change, other than I no longer have a syntax error for having tmpTicker = txtTicker.text
GaryVass
 
Posts: 109
Joined: Wed May 04, 2011 8:03 pm

Re: Read text box in qt form

Postby Henning » Thu Sep 27, 2012 11:25 pm

I hope your QTextBox is a QTextEdit.

Tested, and that control is functioning with tmpTicker = txtTicker.toPlainText.

/Henning
Henning
 
Posts: 522
Joined: Fri Aug 13, 2010 6:29 pm

Re: Read text box in qt form

Postby GaryVass » Fri Sep 28, 2012 1:59 am

Yes, that works.... I had a typo.. I must be the king of typos, I think
GaryVass
 
Posts: 109
Joined: Wed May 04, 2011 8:03 pm


Return to Qt Designer

Who is online

Users browsing this forum: No registered users and 1 guest

cron