> I have named in Qt designer the QLineEdit as txtFld_myLine
> Now I don“t know how to get the string that the user writes
> there.Maybe I am looking at the wrong documentation.
> Does it have something to do with QtGui.QInputDialog.getText? because
> I tryed something like that without success
>
> <<
> myText = QLineEdit("txtFld_myLine")
> myName= QtGui.QInputDialog.getText()

Hi,
 you're close and it's actually simpler than one would think...

This is what you were doing before... and looks good to me:
myWindow=loadUI (uiFile ='C:/Users/rudi/Desktop/t/test.ui')
showWindow(myWindow)

But, to get the value of a widget you've called, "txtFld_myLine", in
the Qt Designer, you just need to call:

lineText = myWindow.txtFld_myLine.text()

I've not consulted the docs, so the method may be getText() as you
have, in PyQt, as apposed to text().

Cheers,
 James.

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to