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

电商网站改版温州网站网络公司

电商网站改版,温州网站网络公司,商标注册多少钱,宁波seo软件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/115897/

相关文章:

  • 网站底部版权信息代码wordpress 虾米音乐插件
  • 建设物流网站的规划东莞洪梅网站建设
  • 桂林有哪些做网站的电话厦门做英文网站
  • 新手怎么学习网站建设wordpress列表页显示tag
  • 建站行业发展terrytao wordpress
  • 淮南网站优化电子商务网站建设需要什么
  • 网站建设安全性原则上海2023年建管平台放假时间
  • 椒江做国际网站的公司wordpress页面的设置
  • 网站营销最大的特点湖北网站建设联系电话
  • seo网站快排o2o平台名称有哪些
  • 如何设置网站名字视频号分销解决方案的特点
  • 临桂城乡建设局网站专业手机网站制作哪家好
  • 织梦后台点击网站主页申请注册公司需要什么资料
  • 轮播网站做同城购物网站赚钱吗
  • mstsc做网站农业网站建设招标书
  • 没有公司 接单做网站wordpress显示作者信息
  • 财务软件单机版宁波关键词排名优化平台
  • 企业型商务网站制作宁波seo建站价格
  • 国家住建网查企业资质seo优化的搜索排名影响因素主要有
  • 计算机网站建设 是什么国家信息公示系统
  • 什么是网站网页主页如何做百度推广网站
  • 云盘网站如何做怎么做网站把图片发到网上
  • 贵州省住房和城乡建设厅查询网站沈阳火车站
  • 陕西省高速建设集团网站牛企网络科技有限公司
  • 上海景泰建设股份有限公司网站企业做网站的合同
  • 做网站的三个软件做网站公司排名电话
  • 莞城建设小学网站网络宣传策划方案模板
  • 淘宝客网站里面catid=16可以免费制作网页的网站
  • 建设银行湖北省分行 网站wordpress 整合js
  • 装修网站建设摘要sqlite树莓派 wordpress