Qt5实战之Qt Platform Abstraction

1 篇文章 0 订阅

Qt5实战之Qt Platform Abstraction

QPA (Qt Platform Abstraction) 即Qt平台抽象层,移植自Qt4,在Qt5中替代QWS(Qt Window System)
QPA插件通过子类化不同的QPlatform*类来实现。QPA中有两个基类:QPlatformIntergration窗口系统集成和QPlatformTheme 深入平台主题和集成。 QStyle 不是QPA的一部分。


类概览


类名(QPlatformIntegration基类)描述
QAbstractEventDispatcher$12
QPlatformAccessibility$1
QPlatformBackingStore$1
QPlatformClipboard$1
QPlatformCursor$1
QPlatformDrag$1
QPlatformFontDatabase$1
QPlatformGraphicsBuffer$1
QPlatformInputContext$1
QPlatformNativeInterface$1
QPlatformOffscreenSurface$1
QPlatformOpenGLContext$1
QPlatformScreen$1
QPlatformServices$1
QPlatformSharedGraphicsCache$1
QPlatformSurface$1
QPlatformWindow$1
类名(QPlatformTheme基类)描述
QPlatformDialogHelper$1
QPlatformMenu$1
QPlatformMenuBar$1
QPlatformMenuItem$1
QPlatformSystemTrayIcon$1
platform palettes$1
platform fonts$1
theme hints$1

src/platformsupport 包含了几个在类unix(unix-like)系统中实现平台插件有帮助的类。

编译配置

1、使用qmake编译,,在*.pro文件中添加

QT += gui-private

2、使用cmake编译,在CMakeLists.txt添加

 find_package(Qt5Gui)
 include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})

注意:qt4.7及其以下的版本用 platformsupport-private 选项


  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值