Qt script get text property

Posted by user350668 on Stack Overflow See other posts from Stack Overflow or by user350668
Published on 2010-05-27T07:37:31Z Indexed on 2010/05/27 7:41 UTC
Read the original article Hit count: 161

Filed under:
|

Hi all,

I'm trying to access the text of a QLabel using Qt script. Here is what I have:

var mystring;
var mylabel = objectFromPath("...someWindow::Label");
mystring = mylabel.text;
// then do something with mystring

This doesn't work and I don't know what I'm doing wrong. Any help would be appreciated. thanks

© Stack Overflow or respective owner

Related posts about qt

Related posts about script