資源簡介
運用Qt框架實現的高級組織結構圖,可支持添加、刪除、剪切、復制、粘貼、插入超鏈接、插入背景圖片、屬性查看等功能,可供學習及研究。

代碼片段和文件信息
#include?
#include?“aboutdialog.h“
AboutDialog::AboutDialog(QWidget?*parent)?:
????QDialog(parent)
{
????this->setWindowFlags(Qt::Dialog?|?Qt::WindowCloseButtonHint);
????this->setFixedSize(380?100);
????initAboutDialog();
}
AboutDialog::~AboutDialog()
{
}
void?AboutDialog::initAboutDialog()
{
????m_versionLabel?=?new?QLabel(“Version:“?this);
????m_versionNumLabel?=?new?QLabel(“0.0.1“?this);
????QHBoxLayout?*hLayout1?=?new?QHBoxLayout();
????hLayout1->addWidget(m_versionLabel);
????hLayout1->addWidget(m_versionNumLabel);
????hLayout1->addStretch();
????m_copyrightLabel?=?new?QLabel(“Copyright:“?this);
????m_copyrightInfoLabel?=?new?QLabel(“Copyright?2019.?All?rights?reserved“?this);
????QHBoxLayout?*hLayout2?=?new?QHBoxLayout();
????hLayout2->addWidget(m_copyrightLabel);
????hLayout2->addWidget(m_copyrightInfoLabel);
????hLayout2->addStretch();
????m_okBtn?=?new?QPushButton(“OK“?this);
????connect(m_okBtn?SIGNAL(clicked(bool))?this?SLOT(close()));
????QHBoxLayout?*hLayout3?=?new?QHBoxLayout();
????hLayout3->addStretch();
????hLayout3->addWidget(m_okBtn);
????QVBoxLayout?*vLayout?=?new?QVBoxLayout();
????vLayout->addLayout(hLayout1);
????vLayout->addLayout(hLayout2);
????vLayout->addSpacing(4);
????vLayout->addLayout(hLayout3);
????this->setLayout(vLayout);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1353??2019-07-24?17:55??OrgChart\aboutdialog.cpp
?????文件????????481??2019-07-24?17:50??OrgChart\aboutdialog.h
?????文件???????1461??2019-07-24?10:29??OrgChart\inputtextdialog.cpp
?????文件????????565??2019-07-24?10:25??OrgChart\inputtextdialog.h
?????文件???????1639??2019-07-31?10:33??OrgChart\insertli
?????文件????????575??2019-07-31?10:12??OrgChart\insertli
?????文件???????1054??2019-08-01?09:18??OrgChart\li
?????文件????????546??2019-08-01?09:17??OrgChart\li
?????文件??????16958??2019-07-24?11:26??OrgChart\logo.ico
?????文件????????191??2019-07-25?15:57??OrgChart\main.cpp
?????文件???????5467??2019-08-01?16:53??OrgChart\node.cpp
?????文件???????1622??2019-08-01?14:22??OrgChart\node.h
?????文件???????2675??2019-07-31?11:22??OrgChart\nodeinfodialog.cpp
?????文件????????683??2019-07-30?11:18??OrgChart\nodeinfodialog.h
?????文件????????703??2019-07-30?15:14??OrgChart\OrgChart.pro
?????文件??????17593??2019-08-01?16:59??OrgChart\orgchartdialog.cpp
?????文件???????1374??2019-08-01?16:43??OrgChart\orgchartdialog.h
?????文件?????????70??2019-07-03?14:39??OrgChart\resource.rc
?????文件????????524??2019-08-01?16:42??OrgChart\scene.cpp
?????文件????????438??2019-08-01?16:42??OrgChart\scene.h
?????文件????????422??2019-07-03?14:49??OrgChart\uac.manifest
?????目錄??????????0??2019-08-01?17:37??OrgChart
-----------?---------??----------?-----??----
????????????????56394????????????????????22
- 上一篇:Qt實現繪圖工具
- 下一篇:visio元件庫電路內部元件
評論
共有 條評論