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.
我有一个带有以下构造函数的类:MyClass(QFile& file);. 我想用Qt Test framework对其进行单元测试。如何从单元测试中指定文件的内容(而不实际创建真实文件)?
MyClass(QFile& file);