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

    仅作为学习笔记,若内容有错误,万望见谅。同时欢迎各位大佬和萌新指出其中的不当之处。
  • 相关阅读:
    Mybatis整理
    Spring获取json和表单
    Mqtt(paho)重连机制
    Redis无法获取资源(Could not get a resource from the pool)
    SSM+Maven+Redis框架学习
    第一章 Zookeeper理论基础
    RocketMQ和Kafka对比
    Kafka工作原理与过程
    Kafka介绍
    JVM调优
  • 原文地址:https://www.cnblogs.com/Arthurian/p/14548136.html
Copyright © 2011-2022 走看看