Therefore
Therefore

Reputation: 367

Determining reason for QTextDocumentWrite write failure

Windows 7 SP1
MSVS 2010
Qt 4.8.4

The QTextDocumentWriter function write only returns a bool.

Is there a way to find out why it failed?

Upvotes: 0

Views: 138

Answers (2)

Chris
Chris

Reputation: 17535

myTextDocumentWriter->device()->errorString()

Upvotes: 2

jarrodparkes
jarrodparkes

Reputation: 2698

At first glance online, I am not finding any documentation about the state of failure when QTextDocumentWriter::write() returns bool. Have you tried stepping into the function call to determine the cause of error?

Upvotes: 0

Related Questions