• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    QGenericReturnArgument

    下一话题

    ClassInfo

    QSysInfo

    详细描述

    PySide.QtCore.QSysInfo class provides information about the system.

    • WordSize 指定用于在其中编译应用程序的平台指针大小。
    • ByteOrder 指定平台是大端在前还是小端在前。
    • WindowsVersion specifies the version of the Windows operating system on which the application is run (Windows only)
    • MacintoshVersion specifies the version of the Macintosh operating system on which the application is run (Mac only).

    Some constants are defined only on certain platforms. You can use the preprocessor symbols Q_WS_WIN() and Q_WS_MAC() to test that the application is compiled under Windows or Mac.

    另请参阅

    PySide.QtCore.QLibraryInfo

    class PySide.QtCore. QSysInfo
    PySide.QtCore.QSysInfo. Endian
    常量 描述
    QSysInfo.BigEndian Big-endian byte order (also called Network byte order)
    QSysInfo.LittleEndian 小端在前字节次序
    QSysInfo.ByteOrder Equals BigEndian or LittleEndian , depending on the platform's byte order.
    PySide.QtCore.QSysInfo. Sizes

    This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.

    常量 描述
    QSysInfo.WordSize The size in bits of a pointer for the platform on which the application is compiled (32 or 64).