voidRcManagerDlg::updateFileInfoTable() { QTableWidget* tb = ui->tb_file_list; QStringList header;constQVector<FILEINFO>& fileInfos = m_parse.getFileInfoList(); header <<"Index"<<"Name"<<"Offset"<<"Length"<<"Type"; tb->clear(); tb->setRowCount(fileInfos.count()); tb->setColu...
&pModel->getMetabolites()[0],true);//create empty environment. Variable nodes should not occur in an expressionstd::vector<std::vector<std::string> > env;std::stringtmpstring = tmpnode->buildMMLString(false, env);std::stringtmpstring2 = tmpnode2->buildMMLString(false, env); mpMML->...
filesFoundLabel->setText(tr("%n file(s) found (Double click on a file to open it)",0, paths.size())); filesFoundLabel->setWordWrap(true); } 开发者ID:Jinxiaohai,项目名称:QT,代码行数:27,代码来源:window.cpp 示例2: subscriberChanged ▲点赞 5▼ //! [1]voidSubscriberDialog::subscrib...
ProjectImage* image = projectData.projectImage(QDir(projectData.projectDir().absoluteFilePath(path)));if(image) emit imageToBeOpened(image);elseQMessageBox::warning(this,"Image Open Error!","Image: "+ path +" was either not imported or not found."); } });returnfilesTable; } 开发者ID:...
modsTable->setCellWidget(row,1,newQLabel(tr("not found"))); }else{ QComboBox* combo =newQComboBox();for(std::vector<QString>::const_iterator modIter = espIter->second.begin(); modIter != espIter->second.end(); ++modIter) { ...
desktopfiles.append(i +'/'+ j)exceptFileNotFoundError:passself.entries = [] i =0forfindesktopfiles: file = open(f) params = {}forlineinfile: s = line.split('=')ifs[0] =='Icon'ors[0] =='Exec'ors[0] =='Name': params.update({s[0] : s[1][0:-1]})ifparams.get('Icon...
stream = QTextStream(inFile)whilenotstream.atEnd():ifprogressDialog.wasCanceled():breakline = stream.readLine()iftextinline: foundFiles.append(files[i])breakprogressDialog.close()returnfoundFilesdefshowFiles(self, files):forfninfiles: file = QFile(self.currentDir.absoluteFilePath(fn)) ...
ProjectImage* image = projectData.projectImage(QDir(projectData.projectDir().absoluteFilePath(path)));if(image) emit imageToBeOpened(image);elseQMessageBox::warning(this,"Image Open Error!","Image: "+ path +" was either not imported or not found."); ...
# 需要导入模块: from PyQt4 import QtGui [as 别名]# 或者: from PyQt4.QtGui importQTableWidgetItem[as 别名]defopen_FileDialog_tl(self):filename = QtGui.QFileDialog.getOpenFileName(self,'File Open','./') self.tl_label.setText(filename)# check dimension and sizewithopen(filename,'rb')...
table.horizontalHeader().hide()iffileisnotNone: file = metadata.extract_metadata(file) table.setRowCount(len(file))fori, (tag, data)inenumerate(sorted(file.items())): table.setItem(i,0, QTableWidgetItem(tag)) table.setItem(i,1, QTableWidgetItem(data)) ...