PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 692 - QTextEdit: toPlainText returns QString
: QTextEdit: toPlainText returns QString
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-19 18:02 EET by fraph24
Modified: 2011-03-04 15:10 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fraph24 2011-02-19 18:02:22 EET

    
Comment 1 fraph24 2011-02-19 18:06:35 EET
Test code:

self.editor = QtGui.QTextEdit()
outFile = QtCore.QFile(fileName)
if outFile.open(QtCore.QFile.WriteOnly | QtCore.QFile.Truncate |
QtCore.QFile.Text):
    outFile.write(self.editor.toPlainText())

Result:

    outFile.write(self.editor.toPlainText())
TypeError: QIODevice.write(QByteArray): argument 1 has unexpected type
'QString'
Comment 2 Hugo Parente Lima 2011-03-04 15:10:43 EET
Closing bug due to 1.0.0 release.