Skip to content

Instantly share code, notes, and snippets.

@ethanhs
Forked from mottosso/PyQt5_members.json
Last active August 30, 2016 01:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ethanhs/6c626ca4e291f3682589699296377d3a to your computer and use it in GitHub Desktop.
Missing members of PySide2

Missing from PySide2, relative to PyQt5.

###Summary: A lot of QOpenGl in Qt5, a bit of QtNetworking perhaps, some QtDBus, and QtGui. QtCore has some functions that are not present, but most are utilities, which have Python alternatives.

Using https://doc.qt.io/qt-5/functions.html

These members are present in PyQt5, in these modules, but are missing in PySide2.

QtGui:
 - QAbstractOpenGLFunctions
 - QBackingStore
 - QDesktopServices
 - QEnterEvent
 - QExposeEvent
 - QGlyphRun
 - QInputMethod
 - QInputMethodQueryEvent
 - QNativeGestureEvent
 - QOffscreenSurface
 - QOpenGLBuffer
 - QOpenGLContext
 - QOpenGLContextGroup
 - QOpenGLDebugLogger
 - QOpenGLDebugMessage
 - QOpenGLFramebufferObject
 - QOpenGLFramebufferObjectFormat
 - QOpenGLPaintDevice
 - QOpenGLPixelTransferOptions
 - QOpenGLShader
 - QOpenGLShaderProgram
 - QOpenGLTexture
 - QOpenGLTimeMonitor
 - QOpenGLTimerQuery
 - QOpenGLVersionProfile
 - QOpenGLVertexArrayObject
 - QOpenGLWindow
 - QPageLayout
 - QPageSize
 - QPaintDeviceWindow
 - QPdfWriter
 - QPixelFormat
 - QPlatformSurfaceEvent
 - QRasterWindow
 - QRawFont
 - QRegularExpressionValidator
 - QScreen
 - QScrollEvent
 - QScrollPrepareEvent
 - QStaticText
 - QStyleHints
 - QTextDocumentWriter
 # QPixelFormat class docs, non-member function
 - qPixelFormatAlpha
 - qPixelFormatCmyk
 - qPixelFormatGrayscale
 - qPixelFormatHsl
 - qPixelFormatHsv
 - qPixelFormatRgba
 - qPixelFormatYuv
 - qPremultiply
 - qUnpremultiply
 #end QPixelFormatClass
QtDBus:
 - QDBus
 - QDBusAbstractAdaptor
 - QDBusAbstractInterface
 - QDBusArgument
 - QDBusConnection
 - QDBusConnectionInterface
 - QDBusError
 - QDBusInterface
 - QDBusMessage
 - QDBusObjectPath
 - QDBusPendingCall
 - QDBusPendingCallWatcher
 - QDBusPendingReply
 - QDBusReply
 - QDBusServiceWatcher
 - QDBusSignature
 - QDBusUnixFileDescriptor
 - QDBusVariant
QtWidgets:
 - QKeySequenceEdit
 - QOpenGLWidget
 - QProxyStyle
 - QScroller
 - QScrollerProperties
 - QWIDGETSIZE_MAX # ((1 << 24) - 1) need to store a const -- should be easy
 # global in qdrawutil.h
 - qDrawBorderPixmap
 - qDrawPlainRect
 - qDrawShadeLine
 - qDrawShadePanel
 - qDrawShadeRect
 - qDrawWinButton
 - qDrawWinPanel
 # end section
QtTest:
 - QSignalSpy # is this really needed? Perhaps unittests can cover its usage? Something to look into.
QtDesigner:
 - QAbstractExtensionFactory
 - QAbstractExtensionManager
 - QAbstractFormBuilder
 - QDesignerActionEditorInterface
 - QDesignerContainerExtension
 - QDesignerCustomWidgetCollectionInterface
 - QDesignerCustomWidgetInterface
 - QDesignerFormEditorInterface
 - QDesignerFormWindowCursorInterface
 - QDesignerFormWindowInterface
 - QDesignerFormWindowManagerInterface
 - QDesignerMemberSheetExtension
 - QDesignerObjectInspectorInterface
 - QDesignerPropertyEditorInterface
 - QDesignerPropertySheetExtension
 - QDesignerTaskMenuExtension
 - QDesignerWidgetBoxInterface
 - QExtensionFactory
 - QExtensionManager
 - QFormBuilder
 - QPyDesignerContainerExtension
 - QPyDesignerCustomWidgetCollectionPlugin
 - QPyDesignerCustomWidgetPlugin
 - QPyDesignerMemberSheetExtension
 - QPyDesignerPropertySheetExtension
 - QPyDesignerTaskMenuExtension
QtCore:
 - QAbstractNativeEventFilter
 - QCollator
 - QCollatorSortKey
 - QCommandLineOption
 - QCommandLineParser
 - QEventLoopLocker
 - QFileSelector
 - QIdentityProxyModel
 - QLibrary
 - QLockFile
 - QMarginsF
 - QMessageAuthenticationCode
 - QMessageLogger
 - QMetaType
 - QMimeDatabase
 - QMimeType
 - QObjectCleanupHandler
 - QRegularExpression
 - QRegularExpressionMatch
 - QRegularExpressionMatchIterator
 - QSaveFile
 - QSharedMemory
 - QSignalBlocker
 - QStandardPaths
 - QStorageInfo
 - QStringListModel
 - QTemporaryDir
 - QTimeZone
 - QUrlQuery
 - QUuid
 - QVariant
# these are Qt Macros. Do they need to be exported?
 - Q_ARG
 - Q_CLASSINFO
 - Q_ENUMS
 - Q_FLAGS #Q_FLAG in Qt docs
 - Q_RETURN_ARG
 #end Macros section
 # These are non-members documented with QTextStream, 
 - bin_ 
 - bom 
 - center
 - dec
 - endl
 - fixed
 - flush
 - forcepoint
 - forcesign
 - hex_
 - left
 - lowercasebase
 - lowercasedigits
 - noforcepoint
 - noforcesign
 - noshowbase
 - oct_
 # end QTextStream section
 - qAddPreRoutine # not found in Qt docs, but there is a qAddPostRoutine
 - qCompress #QByteArray
 - qErrnoWarning # not found in Qt docs
 # start QtGlobal section
 - qFloatDistance 
 - qFormatLogMessage 
 - qInf
 - qQNaN
 - qRound
 - qRound64
 - qSNaN
 - qRemovePostRoutine
 - qSetFieldWidth
 - qSetMessagePattern
 - qSetPadChar
 - qSetRealNumberPrecision
 - qUncompress
 - reset
 - right
 - scientific
 - showbase
 - uppercasebase
 - uppercasedigits
 - ws
  # end QtGlobal
 - qSharedBuild # not found in docs...
QtNetwork: # these may not be built due to missing openssl, should investigate more...
 - QDnsDomainNameRecord
 - QDnsHostAddressRecord
 - QDnsLookup
 - QDnsMailExchangeRecord
 - QDnsServiceRecord
 - QDnsTextRecord
 - QHttpMultiPart
 - QHttpPart

##ENDLIST These have alternatives or are in PySide when built correctly:

QtCore:
 - QT_VERSION # this can be found using PySide2.QtCore.__version_info__
 - QT_VERSION_STR # this can be found using PySide.QtCore.__version__
QtNetwork:
 # these are skipped if openssl not provided
 - QSslCertificate 
 - QSslCertificateExtension 
 - QSslCipher
 - QSslConfiguration
 - QSslEllipticCurve
 - QSslError
 - QSslKey
 - QSslPreSharedKeyAuthenticator
 - QSslSocket

 
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment