zoukankan      html  css  js  c++  java
  • QT中的宏定义

    1、操作系统宏

    //在<QtGlobal>中,定义了各个系统的宏定义
    
    
    //Defined on AIX.
    #ifdef Q_OS_AIX
    
    // Defined on Android.
    #define Q_OS_ANDROID
    
    //Defined on Any BSD 4.4 system.
    #define Q_OS_BSD4
    
    //Defined on BSD/OS.
    #define Q_OS_BSDI
    
    //Defined on Cygwin.
    #define Q_OS_CYGWIN
    
    //Defined on Darwin-based operating systems such as macOS, iOS, watchOS, and tvOS.
    #define Q_OS_DARWIN
    
    //Defined on DG/UX.
    #define Q_OS_DGUX
    
    //Defined on DYNIX/ptx.
    #define Q_OS_DYNIX
    
    //Defined on FreeBSD.
    #define Q_OS_FREEBSD
    
    //Defined on HP-UX.
    #define Q_OS_HPUX
    
    //Defined on GNU Hurd.
    #define Q_OS_HURD
    
    //Defined on iOS.
    #define Q_OS_IOS
    
    //Defined on SGI Irix.
    #define Q_OS_IRIX
    
    //Defined on Linux.
    #define Q_OS_LINUX
    
    //Defined on LynxOS.
    #define Q_OS_LYNX
    
    //Deprecated synonym for Q_OS_DARWIN. Do not use.
    #define Q_OS_MAC
    
    //Defined on macOS.
    #define Q_OS_MACOS
    
    //Defined on NetBSD.
    #define Q_OS_NETBSD
    
    //Defined on OpenBSD.
    #define Q_OS_OPENBSD
    
    //Defined on HP Tru64 UNIX.
    #define Q_OS_OSF
    
    //Deprecated synonym for Q_OS_MACOS. Do not use.
    #define Q_OS_OSX
    
    //Defined on QNX Neutrino.
    #define Q_OS_QNX
    
    //Defined on Reliant UNIX.
    #define Q_OS_RELIANT
    
    //Defined on SCO OpenServer 5.
    #define Q_OS_SCO
    
    //Defined on Sun Solaris.
    #define Q_OS_SOLARIS
    
    //Defined on tvOS.
    #define Q_OS_TVOS
    
    //Defined on DEC Ultrix.
    #define Q_OS_ULTRIX
    
    //Defined on Any UNIX BSD/SYSV system.
    #define Q_OS_UNIX
    
    //Defined on UnixWare 7, Open UNIX 8.
    #define Q_OS_UNIXWARE
    
    //Defined on watchOS.
    #define Q_OS_WATCHOS
    
    //Defined on 32-bit and 64-bit versions of Windows.
    #define Q_OS_WIN32
    
    //Defined on 64-bit versions of Windows.
    #define Q_OS_WIN64
    
    //Defined on all supported versions of Windows. That is, if Q_OS_WIN32, Q_OS_WIN64, or Q_OS_WINRT is defined.
    #define Q_OS_WIN
    
    //Defined on Windows Phone 8.
    #define Q_OS_WINPHONE
    
    //Defined for Windows Runtime (Windows Store apps) on Windows 8, Windows RT, and Windows Phone 8.
    #define Q_OS_WINRT

    作者:耑新新,发布于  博客园

    转载请注明出处,欢迎邮件交流:zhuanxinxin@aliyun.com

    仅作为学习笔记,若内容有错误,万望见谅。同时欢迎各位大佬和萌新指出其中的不当之处。
  • 相关阅读:
    (原)x264代码中的码流控制学习
    (原)关于OpenSL ES播放音频数据的一个奇怪的问题
    (原)理解码率控制模式(x264,x265,vpx)
    CentOS清除用户登录记录和命令历史方法
    2B销售提升业绩的5项技能
    Cookie中的httponly的属性和作用
    如何开展HW行动
    护网结束,复盘攻防,聊聊安全! 2019
    2018-11-21(34)《阿里铁军》阅后记!
    你了解渗透测试与红蓝队对抗的区别吗?
  • 原文地址:https://www.cnblogs.com/Arthurian/p/14548136.html
Copyright © 2011-2022 走看看