Giter Site home page Giter Site logo

gamesyule / qtableviewprinter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonyonce2017/qtableviewprinter

0.0 0.0 0.0 106 KB

用于Qt qtableview的打印, 功能相对完善

License: BSD 3-Clause "New" or "Revised" License

C++ 98.62% QMake 1.38%

qtableviewprinter's Introduction

QTableViewPrinter

用于Qt qtableview的打印, 功能相对完善 功能有借鉴此处: https://github.com/T0ny0/Qt-Table-Printer.git, 感谢

一.开发环境

  • win10-64bit;
  • QT5.6.1-MINGW;

二.功能特点

  • 支持页眉, 页脚.
  • 支持标题,副标题
  • 支持多层表头, 表头合并
  • 打印宽度与qtableview列宽成比例, 调整qtableview即可调整打印宽度
  • 超出宽度的列自动换页, 超出高度的行自动换页
  • 支持打印可选字段, 选择什么字段需要自己来实现了, 没有设置隐藏字段不打印, 因为当前项目需要, 打印字段由客户自己选

三.示例截图

  • 初始qtableview界面.
    image
  • 预览效果
    image
  • 调整列宽
    image
  • 再次预览, 因超出当前页最大列宽, 自动换页 image image

四.LICENSE

BSD License

五.如有疑问, CONTACT ME

wechat: tonyonce

qtableviewprinter's People

Contributors

tonyonce2017 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.