• 大小: 82KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-25
  • 语言: C/C++
  • 标签: Qt  C++  架构  MVC  实例  

资源简介

本资源是一个完整的Qt5.9Creator工程代码,主要功能是总结一个Qt下的MVC架构。该架构主要分为控制层、UI界面层、模型层,具体的理论讲解,可以参考博主这篇博客: https://blog.csdn.net/naibozhuan3744/article/details/82493728

资源截图

代码片段和文件信息

#include “widget.h“
#include 
#include 

int main(int argc char *argv[])
{
    QApplication a(argc argv);
    Widget mainWidget;
    mainWidget.resize(960640);
    mainWidget.setWindowtitle(QString::fromUtf8(“Qt/C++架构工程demo版本V1.0.0“));
    mainWidget.setWindowIcon(QIcon(“:/resource/main_ico.ico“));
    mainWidget.setstyleSheet(“font: bold 12px;“);
    mainWidget.show();

    return a.exec();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-07 10:27  project_frameworkV01\
     目录           0  2018-09-07 10:33  project_frameworkV01\controller\
     文件        1364  2018-09-07 10:33  project_frameworkV01\controller\firstpagecontroller.cpp
     文件         726  2018-09-07 10:08  project_frameworkV01\controller\firstpagecontroller.h
     文件         277  2018-09-06 21:55  project_frameworkV01\controller\secondpagecontroller.cpp
     文件         399  2018-09-06 22:08  project_frameworkV01\controller\secondpagecontroller.h
     文件         449  2018-09-07 10:27  project_frameworkV01\main.cpp
     目录           0  2018-09-07 10:10  project_frameworkV01\model\
     文件         401  2018-09-07 10:10  project_frameworkV01\model\firstpagefunction.cpp
     文件         302  2018-09-06 22:02  project_frameworkV01\model\firstpagefunction.h
     文件         290  2018-09-06 22:02  project_frameworkV01\model\secondpagefunction.cpp
     文件         307  2018-09-06 22:02  project_frameworkV01\model\secondpagefunction.h
     文件        1498  2018-09-06 21:50  project_frameworkV01\project_frameworkV01.pro
     文件       23947  2018-09-06 22:09  project_frameworkV01\project_frameworkV01.pro.user
     文件         240  2018-09-07 10:17  project_frameworkV01\res.qrc
     目录           0  2018-09-07 10:17  project_frameworkV01\resource\
     文件         857  2018-09-06 21:26  project_frameworkV01\resource\icon_page1.png
     文件         984  2018-09-06 21:30  project_frameworkV01\resource\icon_page2.png
     文件       49825  2018-09-06 19:50  project_frameworkV01\resource\main_bg.jpg
     文件       67646  2018-09-07 10:16  project_frameworkV01\resource\main_ico.ico
     文件           8  2018-09-06 19:52  project_frameworkV01\resource.qrc
     目录           0  2018-09-07 10:36  project_frameworkV01\view\
     文件        1419  2018-09-07 10:36  project_frameworkV01\view\firstpagewidget.cpp
     文件         438  2018-09-07 10:08  project_frameworkV01\view\firstpagewidget.h
     文件         505  2018-09-06 21:46  project_frameworkV01\view\secondpagewidget.cpp
     文件         362  2018-09-06 21:42  project_frameworkV01\view\secondpagewidget.h
     文件        4459  2018-09-07 10:08  project_frameworkV01\widget.cpp
     文件         598  2018-09-06 21:38  project_frameworkV01\widget.h

评论

共有 条评论