c++ - 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 函数中不起作用。
解决方案
推荐阅读
- javascript - 函数的运行时执行过程
- angular - 当绑定模型与我的选择选项不同类型时,我应该如何使用选择控件为我的模型设置值?
- sql - 访问 VBA 错误“参数太少。应为 1”
- excel - 从工作表中创建一个动态的依赖列表
- java - 如何使用 jersey 客户端通过带有证书的 https 使用 restful 服务
- python - python seaborn 热图
- ios - 满足条件时通过 NSArray 循环创建新的 UILabel
- aws-lambda - 使用 Amazon Lex 的 inputTranscript 来允许一个敞开的插槽
- javascript - 如何将页面移动到“页面加载”上的锚链接部分?
- javascript - 我怎样才能(有效地)链接我的承诺,它返回一个具有价值而不是承诺的数组?