设为首页 加入收藏

TOP

一个基于QT的解析interproscan结果的C++成员函数(二)
2015-11-21 01:42:02 来源: 作者: 【 】 浏览:2
Tags:一个 基于 解析 interproscan 结果 成员 函数
QVBoxLayout * globalLayout = new QVBoxLayout; QHBoxLayout * filenameLayout = new QHBoxLayout; QHBoxLayout * nameLayout = new QHBoxLayout; filenameLabel = new QLabel(tr("Filename")); QFont * myFont = new QFont; myFont->setBold(true); myFont->setPointSize(24); filenameLabel->setFont(*myFont); filenameLabel->setStyleSheet("color:red"); filenameEdit = new QLineEdit; openFileBtn = new QPushButton("open"); connect(openFileBtn, SIGNAL(clicked()),this, SLOT(on_openFile())); nameLabel = new QLabel(tr("name")); nameLabel->setFont(*myFont); nameLabel->setStyleSheet("color:red"); nameEdit = new QLineEdit; nameComBox = new QComboBox; nameComBox->setEditable(true); nameComBox->addItem("Cytophaga hutchinsonii"); nameComBox->addItem("Dyadobacter fermentans"); nameComBox->addItem("Dyadobactor tibetensis"); nameComBox->addItem("Fibrella aestuarina"); nameComBox->addItem("Fibrisome limi"); nameComBox->addItem("Fibrobacter succinogenes"); nameComBox->addItem("Runella slithyformis"); nameComBox->addItem("Leadbetterella byssophilla"); nameComBox->addItem("Sporocytophaga myxococcoides"); nameComBox->addItem("Spirosoma linguale"); exeBtn = new QPushButton("execute"); connect(exeBtn, SIGNAL(clicked()), this, SLOT(on_exe())); filenameLayout->addWidget(filenameLabel); filenameLayout->addWidget(filenameEdit); filenameLayout->addWidget(openFileBtn); nameLayout->addWidget(nameLabel); nameLayout->addWidget(nameComBox); globalLayout->addLayout(filenameLayout); globalLayout->addLayout(nameLayout); globalLayout->addWidget(exeBtn); this->setLayout(globalLayout); } void PfamToMyDBDlg::on_exe() { filename = filenameEdit->text().trimmed(); name = nameComBox->currentText().trimmed(); // qDebug() << name; this->close(); } void PfamToMyDBDlg::on_openFile() { QString temp = QFileDialog::getOpenFileName(this, "open", "c:/desktop/", "files(*.*)"); filenameEdit->setText(temp); }
要提取的部分不包括后面的序列。中间部分的特点是以换行符区分不同字段,所以如果不做复杂分析的话,可以将这部分结果直接拷贝到excel进行分析。

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++循环顺序队列 下一篇MongoDB(1)--简介以及安装

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: