Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 7 SP1 MSVS 2010 Qt 4.8.4
QTextDocumentWriter函数 write只返回一个布尔值。
有没有办法找出失败的原因?
myTextDocumentWriter->device()->errorString()
乍一看,当 QTextDocumentWriter::write() 返回 bool 时,我没有找到任何关于失败状态的文档。您是否尝试过单步执行函数调用以确定错误原因?