首页 > 解决方案 > std::shared_ptr显示到文本浏览器?

问题描述

我想问一下,我有std::shared_ptr<FILE> pipe(_popen(command.c_str(),"r"), _pclose); 我的bool exec(std::string command){功能。

我的问题是,如何在 textbrowser 上显示std::shared_ptr<FILE> pipe(_popen(command.c_str(),"r"), _pclose);

通常 ui->textBrowser->setText(); 用于显示 textBrowser 但在 bool exec 函数中不起作用。

标签: c++qtc++11

解决方案


推荐阅读