Hi,
Thanks for the reply.
Here's the most annoying thing: "print a" prints the file path perfectly! It just will not change the QLineEdit! I can't even think of a workaround.
Hi,
Thanks for the reply.
Here's the most annoying thing: "print a" prints the file path perfectly! It just will not change the QLineEdit! I can't even think of a workaround.
But what is its type? It's probably not "QString instance", is it?
Richie (6th September 2009)
>>>> print type(a)
<class 'PyQt4.QtCore.QString'>
It was generated by QFileDialog::getOpenFileName, which returns a QString.
I'm stumped.![]()
Last edited by Richie; 6th September 2009 at 16:29. Reason: spelling error
Solved! If I explicitly set it to a QString, it works perferctly.
Qt Code:
txtdb.setText(a)To copy to clipboard, switch view to plain text mode
wysota, you're a hero. Many thanks!
Bookmarks