当前位置: 首页 > news >正文

旅游网站开发背景意义广州做大型网站建设

旅游网站开发背景意义,广州做大型网站建设,自己做网站卖水果,建设网站涉及的技术Advanced-Docking 简介及配置 一、概述二、项目结构三、安装配置四、代码测试 一、概述 Advanced-Docking 是类似QDockWidget 功能的多窗口停靠功能的库。很像visual stdio 的 停靠功能,这个库对于停靠使用的比较完善。很多的软件都使用了这个框架。 项目源地址&a…

Advanced-Docking 简介及配置

  • 一、概述
  • 二、项目结构
  • 三、安装配置
  • 四、代码测试

一、概述

Advanced-Docking 是类似QDockWidget 功能的多窗口停靠功能的库。很像visual stdio 的 停靠功能,这个库对于停靠使用的比较完善。很多的软件都使用了这个框架。

项目源地址:

https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System

使用案例入下:

  • Qt Creator
    从4.12版本开始,Qt Creator在其Qt Designer 中使用了该框架。
    在这里插入图片描述
  • CETONI Elements
    CETONI Elements软件是一款全面的、基于插件的模块化实验室自动化软件,用于使用联合图形用户界面控制CETONI设备。该软件具有强大的脚本系统,可自动执行流程。这个软件也使用了这个视窗布局系统,使用户可以自由安排各种插件提供的所有视图和窗口。
    在这里插入图片描述

二、项目结构

demo 目录和 example 目录下都是 项目的使用例子,我们就是从里面去参考这些示例即可。

src 目录是源代码目录,这个目录最终生成的是一个动态库和静态库,我们可以改变里面的ads.qrc 或者里面的 stylesheets 文件,达到定制这个布局系统的外观显示情况。
在这里插入图片描述

三、安装配置

我们打开源码编译后的 lib 目录下的内容,看我们需要使用哪种库引入即可。

同时把 src 里面的头文件给 复制到新的文件夹下

在这里插入图片描述
在这里插入图片描述
在header 文件夹下包括如下的文件。
在这里插入图片描述

四、代码测试

在 .pro 文件中添加,引入库的功能

win32: LIBS += -L$$PWD/lib/ -lqtadvanceddockingINCLUDEPATH += $$PWD/header
DEPENDPATH += $$PWD/header

测试源码

  • main.cpp
#include "ADSUse.h"int main(int argc, char *argv[])
{QApplication a(argc, argv);qDebug()<< QResource::registerResource("D:/Programs_Projects/Qt/GraduationDesign/MindCheck/Rescourses.rcc");QApplication::setStyle(QStyleFactory::create("Fusion"));ADSUse w;w.show();return a.exec();
}
  • ADSUse.h
#ifndef ADSUSE_H
#define ADSUSE_H#include <QWidget>
#include <DockManager.h>
#include <DockWidget.h>
#include <QLabel>namespace Ui {
class ADSUse;
}class ADSUse : public QWidget
{Q_OBJECTpublic:explicit ADSUse(QWidget *parent = nullptr);~ADSUse();private:Ui::ADSUse *ui;// The main container for dockingads::CDockManager* m_DockManager;
};#endif // ADSUSE_H
  • ADSUse.cpp

#include "ADSUse.h"
#include "ui_ADSUse.h"ADSUse::ADSUse(QWidget *parent) :QWidget(parent),ui(new Ui::ADSUse)
{ui->setupUi(this);// Create the dock manager after the ui is setup. Because the// parent parameter is a QMainWindow the dock manager registers// itself as the central widget as such the ui must be set up first.m_DockManager = new ads::CDockManager(this);// Create example content label - this can be any application specific// widgetQLabel* l = new QLabel();l->setWordWrap(true);l->setAlignment(Qt::AlignTop | Qt::AlignLeft);l->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ");// Create a dock widget with the title Label 1 and set the created label// as the dock widget contentads::CDockWidget* DockWidget = new ads::CDockWidget("Label 1");DockWidget->setWidget(l);// Add the toggleViewAction of the dock widget to the menu to give// the user the possibility to show the dock widget if it has been closed//ui->menuView->addAction(DockWidget->toggleViewAction());// Add the dock widget to the top dock widget aream_DockManager->addDockWidget(ads::TopDockWidgetArea, DockWidget);
}ADSUse::~ADSUse()
{delete ui;
}
http://www.yayakq.cn/news/569289/

相关文章:

  • 坪山模板网站建设公司重庆模板网站建设费用
  • 网站推广的主流方法微信公众平台小程序入口
  • 泰安网站优化公司导购网站开发要多少钱
  • 我是做环保类产品注册哪些浏览量大的网站推销自己的产品比较好呢电影资源下载wordpress
  • .net 网站模板下载地址建设网站如何写文案
  • 做网站维护的人叫啥微信小程序开发平台入口
  • 商丘做网站优化的公司有哪些公众号开发教程零基础
  • 静态网站案例站长工具ip地址
  • 在湖南建设人力资源网站建设商城网站的书籍钱
  • 网站续费自己做动感地带青春卡
  • 怎么上传视频到公司网站如何做网站大图片
  • 求一个好用的网站wordpress花园月亮
  • 网站悬浮窗口大学生帮别人做网站
  • 如何给别人做网站赚钱网络建站平台
  • 网站建设 项目经验网站什么开发
  • 怎么做好网站开发_设计字节跳动现有员工人数
  • 网站开发要学什么语言上杭网站定制
  • 网站做好后怎么更新内容黄埔网站建设哪家好
  • 安溪县住房和城乡建设网站佛山大沥网站建设
  • 手机网站适配代码搜索引擎搜不到网站
  • 网站建设公司天强科技建设部网站 专业评估
  • 网站QQ互联教程网站建设教育平台
  • 广州软件开发有限公司济南优化网站技术
  • 培训学校网站系统个人网站做淘宝客如何备案
  • 小米商城网站建设分析做购物网站的步骤
  • 免费行情软件app网站mnw下载wordpress 清爽主题
  • 网站建设策划书的心得中铁集团2021招聘信息
  • 蛋糕网站建设方案哪个网站做x展架比较好 知乎
  • 刚学完网站开发高端的网站名称
  • 武隆集团网站建设微信小程序开发实战