GithubHelp home page GithubHelp logo

daodaoliang / ncommon Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 16.0 941 KB

Qt编写的一些公共模块

License: MIT License

QMake 1.62% C++ 34.86% Prolog 1.22% C 0.34% Roff 61.29% Batchfile 0.67%
qt common

ncommon's Introduction

公共组件使用说明

[TOC]

0.如何添加项目

  • 首先拷贝源码到你的工程文件目录;
  • 在你的项目 pro文件中添加:
# import dll
win32: LIBS += -L$$PWD/../bin/ -lNCommon
DEPENDPATH += $$PWD/../bin

# import dll file
include($$PWD/../NCommon/NCommon_inc.pri)

** 具体的路径请按照你的项目情况进行修改**

1.如何使用

  • 截取全屏并保存到本地
    qDebug()<<"*********************************截屏保存到本地测试开始******************************************";
    bool ret = NCommon::screenShotToFile();
    qDebug() << "是否保存到本地成功:" << ret;
    qDebug()<<"*********************************截屏保存到本地测试结束******************************************";
  • 截取全屏保存到粘贴板
    qDebug()<<"*********************************截屏保存到粘贴板测试开始*****************************************";
    ret = NCommon::screenShotToClipBoard();
    qDebug() << "是否保存到粘贴板成功:" << ret;
    qDebug()<<"*********************************截屏保存到粘贴板测试结束*****************************************";
  • 截取全屏后全屏显示
    qDebug()<<"*********************************截屏后并全屏显示测试开始*****************************************";
    ret = NCommon::screenShotToShow(2);
    qDebug() << "是否截取后全屏显示成功:" << ret;
    qDebug()<<"*********************************截屏后并全屏显示测试结束*****************************************";
  • 部署APP程序
    qDebug()<<"*********************************发布APP脚本创建测试开始*****************************************";
    ret = NCommon::deployWindowsApp();
    qDebug() << "是否发布程序成功:" << ret;
    qDebug()<<"*********************************发布APP脚本创建测试结束*****************************************";

2. 组件路线图

  • 1.截屏并保存到本地;
  • 2.截屏并保存到粘贴板;
  • 3.截屏后全屏显示;
  • 4.部署APP程序;

3. changelog

  • V1.0.1.0 初始化项目, 增加截屏保存到本地和粘贴板的功能;
  • V1.0.2.0 增加截屏后全屏显示的功能;
  • V1.0.3.0 增加程序部署的功能;

ncommon's People

Contributors

daodaoliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.