摘要:
头文件Qt project settings需要支持QtActivex container具体导出如下:(单列这里)QString filepath=QFileDialog::getSaveFileName(parent,tr("Save orbit"),".",tr("Microsoft Office 2007 (*.xlsx)"));//获取保存路径 if(!filepath.isEmpty()){ QAxObject *excel = new QAxObject(parent); excel->setControl(&qu 阅读全文
摘要:
1.重写ItemDelegate的Item方法这里我使用的QListView来显示Log日志,将写好的代理在初始化中就可以直接赋值上。m_LogModel = new QStandardItemModel(); this->textEditLog->setEditTriggers(QAbstractItemView::NoEditTriggers); this->textEditLog->setModel(m_LogModel); PItemDelegateEx *delegateEx = new PItemDelegateEx; this->textEditLo 阅读全文