Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtCore.QObject Class Reference

The QObject class is the base class of all Qt objects. More...

Inherits QtCore.Qt, ISmokeObject, and IDisposable.

Inherited by QtCore.QAbstractAnimation, QtCore.QAbstractEventDispatcher, QtCore.QAbstractItemModel, QtCore.QAbstractState, QtCore.QAbstractTransition, QtCore.QCoreApplication, QtCore.QEventLoop, QtCore.QFileSystemWatcher, QtCore.QFutureWatcherBase, QtCore.QIODevice, QtCore.QLibrary, QtCore.QMimeData, QtCore.QObjectCleanupHandler, QtCore.QPluginLoader, QtCore.QSettings, QtCore.QSharedMemory, QtCore.QSignalMapper, QtCore.QSocketNotifier, QtCore.QTextCodecPlugin, QtCore.QTimeLine, QtCore.QTimer, QtCore.QTranslator, QtGui.QAbstractItemDelegate, QtGui.QAbstractTextDocumentLayout, QtGui.QAction, QtGui.QActionGroup, QtGui.QButtonGroup, QtGui.QClipboard, QtGui.QCompleter, QtGui.QDataWidgetMapper, QtGui.QDrag, QtGui.QGesture, QtGui.QGraphicsAnchor, QtGui.QGraphicsEffect, QtGui.QGraphicsItemAnimation, QtGui.QGraphicsObject, QtGui.QGraphicsScene, QtGui.QGraphicsTransform, QtGui.QIconEnginePlugin, QtGui.QIconEnginePluginV2, QtGui.QImageIOPlugin, QtGui.QInputContext, QtGui.QInputContextPlugin, QtGui.QItemSelectionModel, QtGui.QLayout, QtGui.QMovie, QtGui.QPictureFormatPlugin, QtGui.QSessionManager, QtGui.QShortcut, QtGui.QSound, QtGui.QStyle, QtGui.QStylePlugin, QtGui.QSystemTrayIcon, QtGui.QTextDocument, QtGui.QTextObject, QtGui.QUndoGroup, QtGui.QUndoStack, QtGui.QValidator, QtGui.QWidget, QtNetwork.QAbstractNetworkCache, QtNetwork.QFtp, QtNetwork.QHttp, QtNetwork.QHttpMultiPart, QtNetwork.QLocalServer, QtNetwork.QNetworkAccessManager, QtNetwork.QNetworkConfigurationManager, QtNetwork.QNetworkCookieJar, QtNetwork.QNetworkSession, QtNetwork.QTcpServer, QtOpenGL.QGLShader, QtOpenGL.QGLShaderProgram, QtScript.QScriptEngine, QtScript.QScriptExtensionPlugin, QtSql.QSqlDriver, QtSql.QSqlDriverPlugin, QtSvg.QSvgRenderer, QtUiTools.QUiLoader, QtWebKit.QWebFrame, QtWebKit.QWebHistoryInterface, QtWebKit.QWebPage, QtWebKit.QWebPluginFactory, QtXmlPatterns.QAbstractMessageHandler, and QtXmlPatterns.QAbstractUriResolver.

Collaboration diagram for QtCore.QObject:

Public Member Functions

 QObject (QObject parent=null)
 
 
virtual void CreateProxy ()
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool OnEvent (QEvent arg1)
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 

Static Public Member Functions

static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Protected Attributes

object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Properties

virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Public Types inherited from QtCore.Qt
enum  AlignmentFlag {
  AlignAbsolute = 16, AlignBottom = 64, AlignCenter = 132, AlignHCenter = 4,
  AlignHorizontal_Mask = 31, AlignJustify = 8, AlignLeading = 1, AlignLeft = 1,
  AlignRight = 2, AlignTop = 32, AlignTrailing = 2, AlignVCenter = 128,
  AlignVertical_Mask = 224
}
  More...
 
enum  AnchorAttribute { AnchorHref = 1, AnchorName = 0 }
  More...
 
enum  AnchorPoint {
  AnchorBottom = 5, AnchorHorizontalCenter = 1, AnchorLeft = 0, AnchorRight = 2,
  AnchorTop = 3, AnchorVerticalCenter = 4
}
  More...
 
enum  ApplicationAttribute {
  AA_AttributeCount = 12, AA_CaptureMultimediaKeys = 11, AA_DontCreateNativeWidgetSiblings = 4, AA_DontShowIconsInMenus = 2,
  AA_DontUseNativeMenuBar = 6, AA_ImmediateWidgetCreation = 0, AA_MSWindowsUseDirect3DByDefault = 1, AA_MacDontSwapCtrlAndMeta = 7,
  AA_MacPluginApplication = 5, AA_NativeWindows = 3, AA_S60DisablePartialScreenInputMode = 9, AA_S60DontConstructApplicationPanes = 8,
  AA_X11InitThreads = 10
}
  More...
 
enum  ArrowType {
  DownArrow = 2, LeftArrow = 3, NoArrow = 0, RightArrow = 4,
  UpArrow = 1
}
 
enum  AspectRatioMode { IgnoreAspectRatio = 0, KeepAspectRatio = 1, KeepAspectRatioByExpanding = 2 }
  More...
 
enum  Axis { XAxis = 0, YAxis = 1, ZAxis = 2 }
  More...
 
enum  BGMode { OpaqueMode = 1, TransparentMode = 0 }
  More...
 
enum  BrushStyle {
  BDiagPattern = 12, ConicalGradientPattern = 17, CrossPattern = 11, Dense1Pattern = 2,
  Dense2Pattern = 3, Dense3Pattern = 4, Dense4Pattern = 5, Dense5Pattern = 6,
  Dense6Pattern = 7, Dense7Pattern = 8, DiagCrossPattern = 14, FDiagPattern = 13,
  HorPattern = 9, LinearGradientPattern = 15, NoBrush = 0, RadialGradientPattern = 16,
  SolidPattern = 1, TexturePattern = 24, VerPattern = 10
}
  More...
 
enum  CaseSensitivity { CaseInsensitive = 0, CaseSensitive = 1 }
 
enum  CheckState { Checked = 2, PartiallyChecked = 1, Unchecked = 0 }
  More...
 
enum  ClipOperation { IntersectClip = 2, NoClip = 0, ReplaceClip = 1, UniteClip = 3 }
 
enum  ConnectionType {
  AutoCompatConnection = 3, AutoConnection = 0, BlockingQueuedConnection = 4, DirectConnection = 1,
  QueuedConnection = 2, UniqueConnection = 128
}
  More...
 
enum  ContextMenuPolicy {
  ActionsContextMenu = 2, CustomContextMenu = 3, DefaultContextMenu = 1, NoContextMenu = 0,
  PreventContextMenu = 4
}
  More...
 
enum  CoordinateSystem { DeviceCoordinates = 0, LogicalCoordinates = 1 }
  More...
 
enum  Corner { BottomLeftCorner = 2, BottomRightCorner = 3, TopLeftCorner = 0, TopRightCorner = 1 }
  More...
 
enum  CursorMoveStyle { LogicalMoveStyle = 0, VisualMoveStyle = 1 }
  More...
 
enum  CursorShape {
  ArrowCursor = 0, BitmapCursor = 24, BlankCursor = 10, BusyCursor = 16,
  ClosedHandCursor = 18, CrossCursor = 2, CustomCursor = 25, DragCopyCursor = 19,
  DragLinkCursor = 21, DragMoveCursor = 20, ForbiddenCursor = 14, IBeamCursor = 4,
  LastCursor = 21, OpenHandCursor = 17, PointingHandCursor = 13, SizeAllCursor = 9,
  SizeBDiagCursor = 7, SizeFDiagCursor = 8, SizeHorCursor = 6, SizeVerCursor = 5,
  SplitHCursor = 12, SplitVCursor = 11, UpArrowCursor = 1, WaitCursor = 3,
  WhatsThisCursor = 15
}
  More...
 
enum  DateFormat {
  DefaultLocaleLongDate = 7, DefaultLocaleShortDate = 6, ISODate = 1, LocalDate = 2,
  LocaleDate = 3, SystemLocaleDate = 2, SystemLocaleLongDate = 5, SystemLocaleShortDate = 4,
  TextDate = 0
}
  More...
 
enum  DayOfWeek {
  Friday = 5, Monday = 1, Saturday = 6, Sunday = 7,
  Thursday = 4, Tuesday = 2, Wednesday = 3
}
 
enum  DockWidgetArea {
  AllDockWidgetAreas = 15, BottomDockWidgetArea = 8, DockWidgetArea_Mask = 15, LeftDockWidgetArea = 1,
  NoDockWidgetArea = 0, RightDockWidgetArea = 2, TopDockWidgetArea = 4
}
 
enum  DockWidgetAreaSizes { NDockWidgetAreas = 4 }
 
enum  DropAction {
  ActionMask = 255, CopyAction = 1, IgnoreAction = 0, LinkAction = 4,
  MoveAction = 2, TargetMoveAction = 32770
}
 
enum  EventPriority { HighEventPriority = 1, LowEventPriority = -1, NormalEventPriority = 0 }
  More...
 
enum  FillRule { OddEvenFill = 0, WindingFill = 1 }
  More...
 
enum  FocusPolicy {
  ClickFocus = 2, NoFocus = 0, StrongFocus = 11, TabFocus = 1,
  WheelFocus = 15
}
  More...
 
enum  FocusReason {
  ActiveWindowFocusReason = 3, BacktabFocusReason = 2, MenuBarFocusReason = 6, MouseFocusReason = 0,
  NoFocusReason = 8, OtherFocusReason = 7, PopupFocusReason = 4, ShortcutFocusReason = 5,
  TabFocusReason = 1
}
  More...
 
enum  GestureFlag { DontStartGestureOnChildren = 1, IgnoredGesturesPropagateToParent = 4, ReceivePartialGestures = 2 }
  More...
 
enum  GestureState {
  GestureCanceled = 4, GestureFinished = 3, GestureStarted = 1, GestureUpdated = 2,
  NoGesture = 0
}
  More...
 
enum  GestureType {
  CustomGesture = 256, LastGestureType = -1, PanGesture = 3, PinchGesture = 4,
  SwipeGesture = 5, TapAndHoldGesture = 2, TapGesture = 1
}
  More...
 
enum  GlobalColor {
  black = 2, blue = 9, color0 = 0, color1 = 1,
  cyan = 10, darkBlue = 15, darkCyan = 16, darkGray = 4,
  darkGreen = 14, darkMagenta = 17, darkRed = 13, darkYellow = 18,
  gray = 5, green = 8, lightGray = 6, magenta = 11,
  red = 7, transparent = 19, white = 3, yellow = 12
}
  More...
 
enum  ImageConversionFlag {
  AlphaDither_Mask = 12, AutoColor = 0, AutoDither = 0, AvoidDither = 128,
  ColorMode_Mask = 3, ColorOnly = 3, DiffuseAlphaDither = 8, DiffuseDither = 0,
  DitherMode_Mask = 192, Dither_Mask = 48, MonoOnly = 2, NoAlpha = 12,
  NoFormatConversion = 512, NoOpaqueDetection = 256, OrderedAlphaDither = 4, OrderedDither = 16,
  PreferDither = 64, ThresholdAlphaDither = 0, ThresholdDither = 32
}
  More...
 
enum  Initialization { Uninitialized = 0 }
 
enum  InputMethodHint {
  ImhDialableCharactersOnly = 1048576, ImhDigitsOnly = 65536, ImhEmailCharactersOnly = 2097152, ImhExclusiveInputMask = -65536,
  ImhFormattedNumbersOnly = 131072, ImhHiddenText = 1, ImhLowercaseOnly = 524288, ImhNoAutoUppercase = 2,
  ImhNoPredictiveText = 32, ImhNone = 0, ImhPreferLowercase = 16, ImhPreferNumbers = 4,
  ImhPreferUppercase = 8, ImhUppercaseOnly = 262144, ImhUrlCharactersOnly = 4194304
}
  More...
 
enum  InputMethodQuery {
  ImAnchorPosition = 6, ImCurrentSelection = 4, ImCursorPosition = 2, ImFont = 1,
  ImMaximumTextLength = 5, ImMicroFocus = 0, ImSurroundingText = 3
}
 
enum  ItemDataRole {
  AccessibleDescriptionRole = 12, AccessibleTextRole = 11, BackgroundColorRole = 8, BackgroundRole = 8,
  CheckStateRole = 10, DecorationPropertyRole = 28, DecorationRole = 1, DisplayPropertyRole = 27,
  DisplayRole = 0, EditRole = 2, FontRole = 6, ForegroundRole = 9,
  InitialSortOrderRole = 14, SizeHintRole = 13, StatusTipPropertyRole = 30, StatusTipRole = 4,
  TextAlignmentRole = 7, TextColorRole = 9, ToolTipPropertyRole = 29, ToolTipRole = 3,
  UserRole = 32, WhatsThisPropertyRole = 31, WhatsThisRole = 5
}
  More...
 
enum  ItemFlag {
  ItemIsDragEnabled = 4, ItemIsDropEnabled = 8, ItemIsEditable = 2, ItemIsEnabled = 32,
  ItemIsSelectable = 1, ItemIsTristate = 64, ItemIsUserCheckable = 16, NoItemFlags = 0
}
  More...
 
enum  ItemSelectionMode { ContainsItemBoundingRect = 2, ContainsItemShape = 0, IntersectsItemBoundingRect = 3, IntersectsItemShape = 1 }
  More...
 
enum  Key {
  Key_0 = 48, Key_1 = 49, Key_2 = 50, Key_3 = 51,
  Key_4 = 52, Key_5 = 53, Key_6 = 54, Key_7 = 55,
  Key_8 = 56, Key_9 = 57, Key_A = 65, Key_AE = 198,
  Key_Aacute = 193, Key_Acircumflex = 194, Key_AddFavorite = 16777408, Key_Adiaeresis = 196,
  Key_Agrave = 192, Key_Alt = 16777251, Key_AltGr = 16781571, Key_Ampersand = 38,
  Key_Any = 32, Key_Apostrophe = 39, Key_ApplicationLeft = 16777415, Key_ApplicationRight = 16777416,
  Key_Aring = 197, Key_AsciiCircum = 94, Key_AsciiTilde = 126, Key_Asterisk = 42,
  Key_At = 64, Key_Atilde = 195, Key_AudioCycleTrack = 16777478, Key_AudioForward = 16777474,
  Key_AudioRandomPlay = 16777476, Key_AudioRepeat = 16777475, Key_AudioRewind = 16777413, Key_Away = 16777464,
  Key_B = 66, Key_Back = 16777313, Key_BackForward = 16777414, Key_Backslash = 92,
  Key_Backspace = 16777219, Key_Backtab = 16777218, Key_Bar = 124, Key_BassBoost = 16777331,
  Key_BassDown = 16777333, Key_BassUp = 16777332, Key_Battery = 16777470, Key_Bluetooth = 16777471,
  Key_Book = 16777417, Key_BraceLeft = 123, Key_BraceRight = 125, Key_BracketLeft = 91,
  Key_BracketRight = 93, Key_BrightnessAdjust = 16777410, Key_C = 67, Key_CD = 16777418,
  Key_Calculator = 16777419, Key_Calendar = 16777444, Key_Call = 17825796, Key_Camera = 17825824,
  Key_CameraFocus = 17825825, Key_Cancel = 16908289, Key_CapsLock = 16777252, Key_Ccedilla = 199,
  Key_Clear = 16777227, Key_ClearGrab = 16777421, Key_Close = 16777422, Key_Codeinput = 16781623,
  Key_Colon = 58, Key_Comma = 44, Key_Community = 16777412, Key_Context1 = 17825792,
  Key_Context2 = 17825793, Key_Context3 = 17825794, Key_Context4 = 17825795, Key_ContrastAdjust = 16777485,
  Key_Control = 16777249, Key_Copy = 16777423, Key_Cut = 16777424, Key_D = 68,
  Key_DOS = 16777426, Key_Dead_Abovedot = 16781910, Key_Dead_Abovering = 16781912, Key_Dead_Acute = 16781905,
  Key_Dead_Belowdot = 16781920, Key_Dead_Breve = 16781909, Key_Dead_Caron = 16781914, Key_Dead_Cedilla = 16781915,
  Key_Dead_Circumflex = 16781906, Key_Dead_Diaeresis = 16781911, Key_Dead_Doubleacute = 16781913, Key_Dead_Grave = 16781904,
  Key_Dead_Hook = 16781921, Key_Dead_Horn = 16781922, Key_Dead_Iota = 16781917, Key_Dead_Macron = 16781908,
  Key_Dead_Ogonek = 16781916, Key_Dead_Semivoiced_Sound = 16781919, Key_Dead_Tilde = 16781907, Key_Dead_Voiced_Sound = 16781918,
  Key_Delete = 16777223, Key_Direction_L = 16777305, Key_Direction_R = 16777312, Key_Display = 16777425,
  Key_Documents = 16777427, Key_Dollar = 36, Key_Down = 16777237, Key_E = 69,
  Key_ETH = 208, Key_Eacute = 201, Key_Ecircumflex = 202, Key_Ediaeresis = 203,
  Key_Egrave = 200, Key_Eisu_Shift = 16781615, Key_Eisu_toggle = 16781616, Key_Eject = 16777401,
  Key_End = 16777233, Key_Enter = 16777221, Key_Equal = 61, Key_Escape = 16777216,
  Key_Excel = 16777428, Key_Exclam = 33, Key_Execute = 16908291, Key_Explorer = 16777429,
  Key_F = 70, Key_F1 = 16777264, Key_F10 = 16777273, Key_F11 = 16777274,
  Key_F12 = 16777275, Key_F13 = 16777276, Key_F14 = 16777277, Key_F15 = 16777278,
  Key_F16 = 16777279, Key_F17 = 16777280, Key_F18 = 16777281, Key_F19 = 16777282,
  Key_F2 = 16777265, Key_F20 = 16777283, Key_F21 = 16777284, Key_F22 = 16777285,
  Key_F23 = 16777286, Key_F24 = 16777287, Key_F25 = 16777288, Key_F26 = 16777289,
  Key_F27 = 16777290, Key_F28 = 16777291, Key_F29 = 16777292, Key_F3 = 16777266,
  Key_F30 = 16777293, Key_F31 = 16777294, Key_F32 = 16777295, Key_F33 = 16777296,
  Key_F34 = 16777297, Key_F35 = 16777298, Key_F4 = 16777267, Key_F5 = 16777268,
  Key_F6 = 16777269, Key_F7 = 16777270, Key_F8 = 16777271, Key_F9 = 16777272,
  Key_Favorites = 16777361, Key_Finance = 16777411, Key_Flip = 17825798, Key_Forward = 16777314,
  Key_G = 71, Key_Game = 16777430, Key_Go = 16777431, Key_Greater = 62,
  Key_H = 72, Key_Hangul = 16781617, Key_Hangul_Banja = 16781625, Key_Hangul_End = 16781619,
  Key_Hangul_Hanja = 16781620, Key_Hangul_Jamo = 16781621, Key_Hangul_Jeonja = 16781624, Key_Hangul_PostHanja = 16781627,
  Key_Hangul_PreHanja = 16781626, Key_Hangul_Romaja = 16781622, Key_Hangul_Special = 16781631, Key_Hangul_Start = 16781618,
  Key_Hangup = 17825797, Key_Hankaku = 16781609, Key_Help = 16777304, Key_Henkan = 16781603,
  Key_Hibernate = 16777480, Key_Hiragana = 16781605, Key_Hiragana_Katakana = 16781607, Key_History = 16777407,
  Key_Home = 16777232, Key_HomePage = 16777360, Key_HotLinks = 16777409, Key_Hyper_L = 16777302,
  Key_Hyper_R = 16777303, Key_I = 73, Key_Iacute = 205, Key_Icircumflex = 206,
  Key_Idiaeresis = 207, Key_Igrave = 204, Key_Insert = 16777222, Key_J = 74,
  Key_K = 75, Key_Kana_Lock = 16781613, Key_Kana_Shift = 16781614, Key_Kanji = 16781601,
  Key_Katakana = 16781606, Key_KeyboardBrightnessDown = 16777398, Key_KeyboardBrightnessUp = 16777397, Key_KeyboardLightOnOff = 16777396,
  Key_L = 76, Key_LastNumberRedial = 17825801, Key_Launch0 = 16777378, Key_Launch1 = 16777379,
  Key_Launch2 = 16777380, Key_Launch3 = 16777381, Key_Launch4 = 16777382, Key_Launch5 = 16777383,
  Key_Launch6 = 16777384, Key_Launch7 = 16777385, Key_Launch8 = 16777386, Key_Launch9 = 16777387,
  Key_LaunchA = 16777388, Key_LaunchB = 16777389, Key_LaunchC = 16777390, Key_LaunchD = 16777391,
  Key_LaunchE = 16777392, Key_LaunchF = 16777393, Key_LaunchG = 16777486, Key_LaunchH = 16777487,
  Key_LaunchMail = 16777376, Key_LaunchMedia = 16777377, Key_Left = 16777234, Key_Less = 60,
  Key_LightBulb = 16777405, Key_LogOff = 16777433, Key_M = 77, Key_MailForward = 16777467,
  Key_Market = 16777434, Key_Massyo = 16781612, Key_MediaLast = 16842751, Key_MediaNext = 16777347,
  Key_MediaPause = 16777349, Key_MediaPlay = 16777344, Key_MediaPrevious = 16777346, Key_MediaRecord = 16777348,
  Key_MediaStop = 16777345, Key_MediaTogglePlayPause = 16777350, Key_Meeting = 16777435, Key_Memo = 16777404,
  Key_Menu = 16777301, Key_MenuKB = 16777436, Key_MenuPB = 16777437, Key_Messenger = 16777465,
  Key_Meta = 16777250, Key_Minus = 45, Key_Mode_switch = 16781694, Key_MonBrightnessDown = 16777395,
  Key_MonBrightnessUp = 16777394, Key_Muhenkan = 16781602, Key_Multi_key = 16781600, Key_MultipleCandidate = 16781629,
  Key_Music = 16777469, Key_MySites = 16777438, Key_N = 78, Key_News = 16777439,
  Key_No = 16842754, Key_Ntilde = 209, Key_NumLock = 16777253, Key_NumberSign = 35,
  Key_O = 79, Key_Oacute = 211, Key_Ocircumflex = 212, Key_Odiaeresis = 214,
  Key_OfficeHome = 16777440, Key_Ograve = 210, Key_Ooblique = 216, Key_OpenUrl = 16777364,
  Key_Option = 16777441, Key_Otilde = 213, Key_P = 80, Key_PageDown = 16777239,
  Key_PageUp = 16777238, Key_ParenLeft = 40, Key_ParenRight = 41, Key_Paste = 16777442,
  Key_Pause = 16777224, Key_Percent = 37, Key_Period = 46, Key_Phone = 16777443,
  Key_Pictures = 16777468, Key_Play = 16908293, Key_Plus = 43, Key_PowerDown = 16777483,
  Key_PowerOff = 16777399, Key_PreviousCandidate = 16781630, Key_Print = 16777225, Key_Printer = 16908290,
  Key_Q = 81, Key_Question = 63, Key_QuoteDbl = 34, Key_QuoteLeft = 96,
  Key_R = 82, Key_Refresh = 16777316, Key_Reload = 16777446, Key_Reply = 16777445,
  Key_Return = 16777220, Key_Right = 16777236, Key_Romaji = 16781604, Key_RotateWindows = 16777447,
  Key_RotationKB = 16777449, Key_RotationPB = 16777448, Key_S = 83, Key_Save = 16777450,
  Key_ScreenSaver = 16777402, Key_ScrollLock = 16777254, Key_Search = 16777362, Key_Select = 16842752,
  Key_Semicolon = 59, Key_Send = 16777451, Key_Shift = 16777248, Key_Shop = 16777406,
  Key_SingleCandidate = 16781628, Key_Slash = 47, Key_Sleep = 16908292, Key_Space = 32,
  Key_Spell = 16777452, Key_SplitScreen = 16777453, Key_Standby = 16777363, Key_Stop = 16777315,
  Key_Subtitle = 16777477, Key_Super_L = 16777299, Key_Super_R = 16777300, Key_Support = 16777454,
  Key_Suspend = 16777484, Key_SysReq = 16777226, Key_T = 84, Key_THORN = 222,
  Key_Tab = 16777217, Key_TaskPane = 16777455, Key_Terminal = 16777456, Key_Time = 16777479,
  Key_ToDoList = 16777420, Key_ToggleCallHangup = 17825799, Key_Tools = 16777457, Key_TopMenu = 16777482,
  Key_Touroku = 16781611, Key_Travel = 16777458, Key_TrebleDown = 16777335, Key_TrebleUp = 16777334,
  Key_U = 85, Key_UWB = 16777473, Key_Uacute = 218, Key_Ucircumflex = 219,
  Key_Udiaeresis = 220, Key_Ugrave = 217, Key_Underscore = 95, Key_Up = 16777235,
  Key_V = 86, Key_Video = 16777459, Key_View = 16777481, Key_VoiceDial = 17825800,
  Key_VolumeDown = 16777328, Key_VolumeMute = 16777329, Key_VolumeUp = 16777330, Key_W = 87,
  Key_WLAN = 16777472, Key_WWW = 16777403, Key_WakeUp = 16777400, Key_WebCam = 16777466,
  Key_Word = 16777460, Key_X = 88, Key_Xfer = 16777461, Key_Y = 89,
  Key_Yacute = 221, Key_Yes = 16842753, Key_Z = 90, Key_Zenkaku = 16781608,
  Key_Zenkaku_Hankaku = 16781610, Key_Zoom = 16908294, Key_ZoomIn = 16777462, Key_ZoomOut = 16777463,
  Key_acute = 180, Key_brokenbar = 166, Key_cedilla = 184, Key_cent = 162,
  Key_copyright = 169, Key_currency = 164, Key_degree = 176, Key_diaeresis = 168,
  Key_division = 247, Key_exclamdown = 161, Key_guillemotleft = 171, Key_guillemotright = 187,
  Key_hyphen = 173, Key_iTouch = 16777432, Key_macron = 175, Key_masculine = 186,
  Key_mu = 181, Key_multiply = 215, Key_nobreakspace = 160, Key_notsign = 172,
  Key_onehalf = 189, Key_onequarter = 188, Key_onesuperior = 185, Key_ordfeminine = 170,
  Key_paragraph = 182, Key_periodcentered = 183, Key_plusminus = 177, Key_questiondown = 191,
  Key_registered = 174, Key_section = 167, Key_ssharp = 223, Key_sterling = 163,
  Key_threequarters = 190, Key_threesuperior = 179, Key_twosuperior = 178, Key_unknown = 33554431,
  Key_ydiaeresis = 255, Key_yen = 165
}
  More...
 
enum  KeyboardModifier {
  AltModifier = 134217728, ControlModifier = 67108864, GroupSwitchModifier = 1073741824, KeyboardModifierMask = -33554432,
  KeypadModifier = 536870912, MetaModifier = 268435456, NoModifier = 0, ShiftModifier = 33554432
}
  More...
 
enum  LayoutDirection { LayoutDirectionAuto = 2, LeftToRight = 0, RightToLeft = 1 }
  More...
 
enum  MaskMode { MaskInColor = 0, MaskOutColor = 1 }
  More...
 
enum  MatchFlag {
  MatchCaseSensitive = 16, MatchContains = 1, MatchEndsWith = 3, MatchExactly = 0,
  MatchFixedString = 8, MatchRecursive = 64, MatchRegExp = 4, MatchStartsWith = 2,
  MatchWildcard = 5, MatchWrap = 32
}
  More...
 
enum  Modifier {
  ALT = 134217728, CTRL = 67108864, META = 268435456, MODIFIER_MASK = -33554432,
  SHIFT = 33554432, UNICODE_ACCEL = 0
}
  More...
 
enum  MouseButton {
  LeftButton = 1, MidButton = 4, MiddleButton = 4, MouseButtonMask = 255,
  NoButton = 0, RightButton = 2, XButton1 = 8, XButton2 = 16
}
  More...
 
enum  NavigationMode {
  NavigationModeCursorAuto = 3, NavigationModeCursorForceVisible = 4, NavigationModeKeypadDirectional = 2, NavigationModeKeypadTabOrder = 1,
  NavigationModeNone = 0
}
  More...
 
enum  Orientation { Horizontal = 1, Vertical = 2 }
  More...
 
enum  PenCapStyle { FlatCap = 0, MPenCapStyle = 48, RoundCap = 32, SquareCap = 16 }
  More...
 
enum  PenJoinStyle {
  BevelJoin = 64, MPenJoinStyle = 448, MiterJoin = 0, RoundJoin = 128,
  SvgMiterJoin = 256
}
  More...
 
enum  PenStyle {
  CustomDashLine = 6, DashDotDotLine = 5, DashDotLine = 4, DashLine = 2,
  DotLine = 3, MPenStyle = 15, NoPen = 0, SolidLine = 1
}
  More...
 
enum  ScrollBarPolicy { ScrollBarAlwaysOff = 1, ScrollBarAlwaysOn = 2, ScrollBarAsNeeded = 0 }
  More...
 
enum  ShortcutContext { ApplicationShortcut = 2, WidgetShortcut = 0, WidgetWithChildrenShortcut = 3, WindowShortcut = 1 }
  More...
 
enum  SizeHint {
  MaximumSize = 2, MinimumDescent = 3, MinimumSize = 0, NSizeHints = 4,
  PreferredSize = 1
}
  More...
 
enum  SizeMode { AbsoluteSize = 0, RelativeSize = 1 }
  More...
 
enum  SortOrder { AscendingOrder = 0, DescendingOrder = 1 }
  More...
 
enum  TextElideMode { ElideLeft = 0, ElideMiddle = 2, ElideNone = 3, ElideRight = 1 }
  More...
 
enum  TextFlag {
  TextBypassShaping = 1048576, TextDontClip = 512, TextDontPrint = 16384, TextExpandTabs = 1024,
  TextForceLeftToRight = 131072, TextForceRightToLeft = 262144, TextHideMnemonic = 32768, TextIncludeTrailingSpaces = 134217728,
  TextJustificationForced = 65536, TextLongestVariant = 524288, TextShowMnemonic = 2048, TextSingleLine = 256,
  TextWordWrap = 4096, TextWrapAnywhere = 8192
}
  More...
 
enum  TextFormat { AutoText = 2, LogText = 3, PlainText = 0, RichText = 1 }
  More...
 
enum  TextInteractionFlag {
  LinksAccessibleByKeyboard = 8, LinksAccessibleByMouse = 4, NoTextInteraction = 0, TextBrowserInteraction = 13,
  TextEditable = 16, TextEditorInteraction = 19, TextSelectableByKeyboard = 2, TextSelectableByMouse = 1
}
  More...
 
enum  TileRule { RepeatTile = 1, RoundTile = 2, StretchTile = 0 }
  More...
 
enum  TimeSpec { LocalTime = 0, OffsetFromUTC = 2, UTC = 1 }
 
enum  ToolBarArea {
  AllToolBarAreas = 15, BottomToolBarArea = 8, LeftToolBarArea = 1, NoToolBarArea = 0,
  RightToolBarArea = 2, ToolBarArea_Mask = 15, TopToolBarArea = 4
}
 
enum  ToolBarAreaSizes { NToolBarAreas = 4 }
 
enum  ToolButtonStyle {
  ToolButtonFollowStyle = 4, ToolButtonIconOnly = 0, ToolButtonTextBesideIcon = 2, ToolButtonTextOnly = 1,
  ToolButtonTextUnderIcon = 3
}
  More...
 
enum  TouchPointState {
  TouchPointMoved = 2, TouchPointPressed = 1, TouchPointPrimary = 16, TouchPointReleased = 8,
  TouchPointStateMask = 15, TouchPointStationary = 4
}
  More...
 
enum  TransformationMode { FastTransformation = 0, SmoothTransformation = 1 }
  More...
 
enum  UIEffect {
  UI_AnimateCombo = 3, UI_AnimateMenu = 1, UI_AnimateToolBox = 6, UI_AnimateTooltip = 4,
  UI_FadeMenu = 2, UI_FadeTooltip = 5, UI_General = 0
}
  More...
 
enum  WidgetAttribute {
  WA_AcceptDrops = 78, WA_AcceptTouchEvents = 121, WA_AlwaysShowToolTips = 84, WA_AttributeCount = 135,
  WA_AutoOrientation = 130, WA_CanHostQMdiSubWindowTitleBar = 95, WA_ContentsPropagated = 3, WA_CustomWhatsThis = 47,
  WA_DeleteOnClose = 55, WA_Disabled = 0, WA_DontCreateNativeAncestors = 101, WA_DontShowOnScreen = 103,
  WA_DropSiteRegistered = 79, WA_ForceAcceptDrops = 79, WA_ForceDisabled = 32, WA_ForceUpdatesDisabled = 59,
  WA_GrabbedShortcut = 50, WA_GroupLeader = 72, WA_Hover = 74, WA_InputMethodEnabled = 14,
  WA_InputMethodTransparent = 75, WA_InvalidSize = 45, WA_KeyCompression = 33, WA_KeyboardFocusChange = 77,
  WA_LaidOut = 7, WA_LayoutOnEntireRect = 48, WA_LayoutUsesWidgetRect = 92, WA_LockLandscapeOrientation = 129,
  WA_LockPortraitOrientation = 128, WA_MSWindowsUseDirect3D = 94, WA_MacAlwaysShowToolWindow = 96, WA_MacBrushedMetal = 46,
  WA_MacFrameworkScaled = 117, WA_MacMetalStyle = 46, WA_MacMiniSize = 91, WA_MacNoClickThrough = 12,
  WA_MacNoShadow = 134, WA_MacNormalSize = 89, WA_MacOpaqueSizeGrip = 85, WA_MacShowFocusRect = 88,
  WA_MacSmallSize = 90, WA_MacVariableSize = 102, WA_Mapped = 11, WA_MergeSoftkeys = 124,
  WA_MergeSoftkeysRecursively = 125, WA_MouseNoMask = 71, WA_MouseTracking = 2, WA_Moved = 43,
  WA_NativeWindow = 100, WA_NoBackground = 4, WA_NoChildEventsForParent = 58, WA_NoChildEventsFromChildren = 39,
  WA_NoMousePropagation = 73, WA_NoMouseReplay = 54, WA_NoSystemBackground = 9, WA_NoX11EventCompression = 81,
  WA_OpaquePaintEvent = 4, WA_OutsideWSRange = 49, WA_PaintOnScreen = 8, WA_PaintOutsidePaintEvent = 13,
  WA_PaintUnclipped = 52, WA_PendingMoveEvent = 34, WA_PendingResizeEvent = 35, WA_PendingUpdate = 44,
  WA_QuitOnClose = 76, WA_Resized = 42, WA_RightToLeft = 56, WA_SetCursor = 38,
  WA_SetFont = 37, WA_SetLayoutDirection = 57, WA_SetLocale = 87, WA_SetPalette = 36,
  WA_SetStyle = 86, WA_SetWindowIcon = 53, WA_SetWindowModality = 118, WA_ShowModal = 70,
  WA_ShowWithoutActivating = 98, WA_StaticContents = 5, WA_StyleSheet = 97, WA_StyledBackground = 93,
  WA_SymbianNoSystemRotation = 133, WA_TintedBackground = 82, WA_TouchPadAcceptSingleTouchEvents = 123, WA_TranslucentBackground = 120,
  WA_TransparentForMouseEvents = 51, WA_UnderMouse = 1, WA_UpdatesDisabled = 10, WA_WState_AcceptedTouchBeginEvent = 122,
  WA_WState_CompressKeys = 61, WA_WState_ConfigPending = 64, WA_WState_Created = 60, WA_WState_DND = 67,
  WA_WState_ExplicitShowHide = 69, WA_WState_Hidden = 16, WA_WState_InPaintEvent = 62, WA_WState_OwnSizePolicy = 68,
  WA_WState_Polished = 66, WA_WState_Reparented = 63, WA_WState_Visible = 15, WA_WState_WindowOpacitySet = 119,
  WA_WindowModified = 41, WA_WindowPropagation = 80, WA_X11BypassTransientForHint = 99, WA_X11DoNotAcceptFocus = 132,
  WA_X11NetWmWindowTypeCombo = 115, WA_X11NetWmWindowTypeDND = 116, WA_X11NetWmWindowTypeDesktop = 104, WA_X11NetWmWindowTypeDialog = 110,
  WA_X11NetWmWindowTypeDock = 105, WA_X11NetWmWindowTypeDropDownMenu = 111, WA_X11NetWmWindowTypeMenu = 107, WA_X11NetWmWindowTypeNotification = 114,
  WA_X11NetWmWindowTypePopupMenu = 112, WA_X11NetWmWindowTypeSplash = 109, WA_X11NetWmWindowTypeToolBar = 106, WA_X11NetWmWindowTypeToolTip = 113,
  WA_X11NetWmWindowTypeUtility = 108, WA_X11OpenGLOverlay = 83
}
  More...
 
enum  WindowFrameSection {
  BottomLeftSection = 8, BottomRightSection = 6, BottomSection = 7, LeftSection = 1,
  NoSection = 0, RightSection = 5, TitleBarArea = 9, TopLeftSection = 2,
  TopRightSection = 4, TopSection = 3
}
  More...
 
enum  WindowModality { ApplicationModal = 2, NonModal = 0, WindowModal = 1 }
  More...
 
enum  WindowState {
  WindowActive = 8, WindowFullScreen = 4, WindowMaximized = 2, WindowMinimized = 1,
  WindowNoState = 0
}
  More...
 
enum  WindowType {
  BypassGraphicsProxyWidget = 536870912, CustomizeWindowHint = 33554432, Desktop = 17, Dialog = 3,
  Drawer = 7, FramelessWindowHint = 2048, MSWindowsFixedSizeDialogHint = 256, MSWindowsOwnDC = 512,
  MacWindowToolBarButtonHint = 268435456, Popup = 9, Sheet = 5, SplashScreen = 15,
  SubWindow = 18, Tool = 11, ToolTip = 13, Widget = 0,
  Window = 1, WindowCancelButtonHint = 1048576, WindowCloseButtonHint = 134217728, WindowContextHelpButtonHint = 65536,
  WindowMaximizeButtonHint = 32768, WindowMinMaxButtonsHint = 49152, WindowMinimizeButtonHint = 16384, WindowOkButtonHint = 524288,
  WindowShadeButtonHint = 131072, WindowSoftkeysRespondHint = -2147483648, WindowSoftkeysVisibleHint = 1073741824, WindowStaysOnBottomHint = 67108864,
  WindowStaysOnTopHint = 262144, WindowSystemMenuHint = 8192, WindowTitleHint = 4096, WindowType_Mask = 255,
  X11BypassWindowManagerHint = 1024
}
  More...
 

Detailed Description

The QObject class is the base class of all Qt objects.

QObject is the heart of the Qt Object Model. The central feature in this model is a very powerful mechanism for seamless object communication called signals and slots. You can connect a signal to a slot with connect() and destroy the connection with disconnect(). To avoid never ending notification loops you can temporarily block signals with blockSignals(). The protected functions connectNotify() and disconnectNotify() make it possible to track connections.

QObjects organize themselves in object trees. When you create a QObject with another object as parent, the object will automatically add itself to the parent's children() list. The parent takes ownership of the object; i.e., it will automatically delete its children in its destructor. You can look for an object by name and optionally type using findChild() or findChildren().

Every object has an objectName() and its class name can be found via the corresponding metaObject() (see QMetaObject::className()). You can determine whether the object's class inherits another class in the QObject inheritance hierarchy by using the inherits() function.

When an object is deleted, it emits a destroyed() signal. You can catch this signal to avoid dangling references to QObjects.

QObjects can receive events through event() and filter the events of other objects. See installEventFilter() and eventFilter() for details. A convenience handler, childEvent(), can be reimplemented to catch child events.

Events are delivered in the thread in which the object was created; see Thread Support in Qt and thread() for details. Note that event processing is not done at all for QObjects with no thread affinity (thread() returns zero). Use the moveToThread() function to change the thread affinity for an object and its children (the object cannot be moved if it has a parent).

Last but not least, QObject provides the basic timer support in Qt; see QTimer for high-level support for timers.

Notice that the Q_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the Meta Object Compiler on the source file. We strongly recommend the use of this macro in all subclasses of QObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit strange behavior.

All Qt widgets inherit QObject. The convenience function isWidgetType() returns whether an object is actually a widget. It is much faster than qobject_cast<QWidget *>(obj) or obj->inherits("QWidget").

Some QObject functions, e.g. children(), return a QObjectList. QObjectList is a typedef for QList<QObject *>.

No copy constructor or assignment operator

QObject has neither a copy constructor nor an assignment operator. This is by design. Actually, they are declared, but in a private section with the macro Q_DISABLE_COPY(). In fact, all Qt classes derived from QObject (direct or indirect) use this macro to declare their copy constructor and assignment operator to be private. The reasoning is found in the discussion on Identity vs Value on the Qt Object Model page.

The main consequence is that you should use pointers to QObject (or to your QObject subclass) where you might otherwise be tempted to use your QObject subclass as a value. For example, without a copy constructor, you can't use a subclass of QObject as the value to be stored in one of the container classes. You must store pointers.

Auto-Connection

Qt's meta-object system provides a mechanism to automatically connect signals and slots between QObject subclasses and their children. As long as objects are defined with suitable object names, and slots follow a simple naming convention, this connection can be performed at run-time by the QMetaObject::connectSlotsByName() function.

uic generates code that invokes this function to enable auto-connection to be performed between widgets on forms created with Qt Designer. More information about using auto-connection with Qt Designer is given in the Using a Designer UI File in Your Application section of the Qt Designer manual.

Dynamic Properties

From Qt 4.2, dynamic properties can be added to and removed from QObject instances at run-time. Dynamic properties do not need to be declared at compile-time, yet they provide the same advantages as static properties and are manipulated using the same API - using property() to read them and setProperty() to write them.

From Qt 4.3, dynamic properties are supported by Qt Designer, and both standard Qt widgets and user-created forms can be given dynamic properties.

Internationalization (i18n)

All QObject subclasses support Qt's translation features, making it possible to translate an application's user interface into different languages.

To make user-visible text translatable, it must be wrapped in calls to the tr() function. This is explained in detail in the Writing Source Code for Translation document.

See also QMetaObject, QPointer, QObjectCleanupHandler, Q_DISABLE_COPY(), and Object Trees & Ownership.

Constructor & Destructor Documentation

QtCore.QObject.QObject ( System.Type  dummy)
protected
QtCore.QObject.QObject ( QObject  parent = null)

Constructs an object with parent object parent.

The parent of an object may be viewed as the object's owner. For instance, a dialog box is the parent of the OK and Cancel buttons it contains.

The destructor of a parent object destroys all child objects.

Setting parent to 0 constructs an object with no parent. If the object is a widget, it will become a top-level window.

See also parent(), findChild(), and findChildren().

Member Function Documentation

new bool QtCore.QObject.BlockSignals ( bool  b)

If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). If block is false, no such blocking will occur.

The return value is the previous value of signalsBlocked().

Note that the destroyed() signal will be emitted even if the signals for this object have been blocked.

See also signalsBlocked().

new System.Collections.Generic.List<QObject> QtCore.QObject.Children ( )

Returns a list of child objects. The QObjectList class is defined in the <QObject> header file as the following:

typedef QList<QObject*> QObjectList;

The first child added is the first object in the list and the last child added is the last object in the list, i.e. new children are appended at the end.

Note that the list order changes when QWidget children are raised or lowered. A widget that is raised becomes the last object in the list, and a widget that is lowered becomes the first object in the list.

See also findChild(), findChildren(), parent(), and setParent().

static bool QtCore.QObject.Connect ( QObject  sender,
QMetaMethod  signal,
QObject  receiver,
QMetaMethod  method,
Qt.ConnectionType  type = Qt.ConnectionType.AutoConnection 
)
static

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns true if the connection succeeds; otherwise returns false.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;

QScrollBar *scrollBar = new QScrollBar;

QObject::connect(scrollBar, SIGNAL(valueChanged(int)),

label, SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG

QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),

label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget

{

Q_OBJECT

public:

MyWidget();

signals:

void buttonClicked();

private:

QPushButton *myButton;

};

MyWidget::MyWidget()

{

myButton = new QPushButton(this);

connect(myButton, SIGNAL(clicked()),

this, SIGNAL(buttonClicked()));

}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order as the order the connection was made, when the signal is emitted.

The function returns true if it successfully connects the signal to the slot. It will return false if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return false.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'

(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), and Q_DECLARE_METATYPE().

static bool QtCore.QObject.Connect ( QObject  sender,
string  signal,
QObject  receiver,
string  member,
Qt.ConnectionType  arg5 = Qt.ConnectionType.AutoConnection 
)
static

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns true if the connection succeeds; otherwise returns false.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;

QScrollBar *scrollBar = new QScrollBar;

QObject::connect(scrollBar, SIGNAL(valueChanged(int)),

label, SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG

QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),

label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget

{

Q_OBJECT

public:

MyWidget();

signals:

void buttonClicked();

private:

QPushButton *myButton;

};

MyWidget::MyWidget()

{

myButton = new QPushButton(this);

connect(myButton, SIGNAL(clicked()),

this, SIGNAL(buttonClicked()));

}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order as the order the connection was made, when the signal is emitted.

The function returns true if it successfully connects the signal to the slot. It will return false if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return false.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'

(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), and Q_DECLARE_METATYPE().

new bool QtCore.QObject.Connect ( QObject  sender,
string  signal,
string  member,
Qt.ConnectionType  type = Qt.ConnectionType.AutoConnection 
)

Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns true if the connection succeeds; otherwise returns false.

You must use the SIGNAL() and SLOT() macros when specifying the signal and the method, for example:

QLabel *label = new QLabel;

QScrollBar *scrollBar = new QScrollBar;

QObject::connect(scrollBar, SIGNAL(valueChanged(int)),

label, SLOT(setNum(int)));

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return false:

// WRONG

QObject::connect(scrollBar, SIGNAL(valueChanged(int value)),

label, SLOT(setNum(int value)));

A signal can also be connected to another signal:

class MyWidget : public QWidget

{

Q_OBJECT

public:

MyWidget();

signals:

void buttonClicked();

private:

QPushButton *myButton;

};

MyWidget::MyWidget()

{

myButton = new QPushButton(this);

connect(myButton, SIGNAL(clicked()),

this, SIGNAL(buttonClicked()));

}

In this example, the MyWidget constructor relays a signal from a private member variable, and makes it available under a name that relates to MyWidget.

A signal can be connected to many slots and signals. Many signals can be connected to one slot.

If a signal is connected to several slots, the slots are activated in the same order as the order the connection was made, when the signal is emitted.

The function returns true if it successfully connects the signal to the slot. It will return false if it cannot create the connection, for example, if QObject is unable to verify the existence of either signal or method, or if their signatures aren't compatible.

By default, a signal is emitted for every connection you make; two signals are emitted for duplicate connections. You can break all of these connections with a single disconnect() call. If you pass the Qt::UniqueConnection type, the connection will only be made if it is not a duplicate. If there is already a duplicate (exact same signal to the exact same slot on the same objects), the connection will fail and connect will return false.

The optional type parameter describes the type of connection to establish. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time. If the signal is queued, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message

QObject::connect: Cannot queue arguments of type 'MyType'

(Make sure 'MyType' is registered using qRegisterMetaType().)

call qRegisterMetaType() to register the data type before you establish the connection.

Note: This function is thread-safe.

See also disconnect(), sender(), qRegisterMetaType(), and Q_DECLARE_METATYPE().

virtual void QtCore.QObject.ConnectNotify ( string  signal)
protectedvirtual

This virtual function is called when something has been connected to signal in this object.

If you want to compare signal with a specific signal, use QLatin1String and the SIGNAL() macro as follows:

if (QLatin1String(signal) == SIGNAL(valueChanged(int))) {

// signal is valueChanged(int)

}

If the signal contains multiple parameters or parameters that contain spaces, call QMetaObject::normalizedSignature() on the result of the SIGNAL() macro.

Warning: This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.

See also connect() and disconnectNotify().

Reimplemented in QtCore.QFutureWatcherBase, QtGui.QClipboard, QtNetwork.QNetworkSession, and QtCore.QBuffer.

virtual void QtCore.QObject.CreateProxy ( )
virtual

Reimplemented in QtGui.QWorkspace, QtGui.QWizardPage, QtGui.QWizard, QtGui.QWidgetAction, QtGui.QWidget, QtGui.QValidator, QtGui.QVBoxLayout, QtGui.QUndoView, QtGui.QUndoStack, QtGui.QUndoGroup, QtGui.QTreeWidget, QtGui.QTreeView, QtGui.QToolButton, QtGui.QToolBox, QtGui.QToolBar, QtGui.QTimeEdit, QtGui.QTextTable, QtGui.QTextObject, QtGui.QTextList, QtGui.QTextFrame, QtGui.QTextEdit, QtGui.QTextDocument, QtGui.QTextBrowser, QtGui.QTextBlockGroup, QtGui.QTapGesture, QtGui.QTapAndHoldGesture, QtGui.QTableWidget, QtGui.QTableView, QtGui.QTabWidget, QtGui.QTabBar, QtGui.QSystemTrayIcon, QtGui.QSwipeGesture, QtGui.QStyledItemDelegate, QtGui.QStylePlugin, QtGui.QStyle, QtGui.QStringListModel, QtGui.QStatusBar, QtGui.QStandardItemModel, QtGui.QStackedWidget, QtGui.QStackedLayout, QtGui.QSplitterHandle, QtGui.QSplitter, QtGui.QSplashScreen, QtGui.QSpinBox, QtGui.QSound, QtGui.QSortFilterProxyModel, QtGui.QSlider, QtGui.QSizeGrip, QtGui.QShortcut, QtGui.QSessionManager, QtGui.QScrollBar, QtGui.QScrollArea, QtGui.QRubberBand, QtGui.QRegExpValidator, QtGui.QRadioButton, QtGui.QPushButton, QtGui.QProxyStyle, QtGui.QProxyModel, QtGui.QProgressDialog, QtGui.QProgressBar, QtGui.QPrintPreviewWidget, QtGui.QPrintPreviewDialog, QtGui.QPrintDialog, QtGui.QPlainTextEdit, QtGui.QPlainTextDocumentLayout, QtGui.QPinchGesture, QtGui.QPictureFormatPlugin, QtGui.QPanGesture, QtGui.QPageSetupDialog, QtGui.QMovie, QtGui.QMouseEventTransition, QtGui.QMessageBox, QtGui.QMenuBar, QtGui.QMenu, QtGui.QMdiSubWindow, QtGui.QMdiArea, QtGui.QMainWindow, QtGui.QListWidget, QtGui.QListView, QtGui.QLineEdit, QtGui.QLayout, QtGui.QLabel, QtGui.QLCDNumber, QtGui.QKeyEventTransition, QtGui.QItemSelectionModel, QtGui.QItemDelegate, QtGui.QIntValidator, QtGui.QInputDialog, QtGui.QInputContextPlugin, QtGui.QInputContext, QtGui.QImageIOPlugin, QtGui.QIconEnginePluginV2, QtGui.QIconEnginePlugin, QtCore.QVariantAnimation, QtGui.QHeaderView, QtGui.QHBoxLayout, QtGui.QGroupBox, QtCore.QTranslator, QtGui.QGridLayout, QtCore.QTimer, QtCore.QTimeLine, QtGui.QGraphicsWidget, QtCore.QTextCodecPlugin, QtGui.QGraphicsView, QtGui.QGraphicsTransform, QtGui.QGraphicsTextItem, QtCore.QTemporaryFile, QtCore.QStateMachine, QtCore.QState, QtCore.QSocketNotifier, QtGui.QGraphicsScene, QtCore.QSignalTransition, QtGui.QGraphicsScale, QtCore.QSignalMapper, QtGui.QGraphicsRotation, QtCore.QSharedMemory, QtGui.QGraphicsProxyWidget, QtCore.QSettings, QtCore.QSequentialAnimationGroup, QtGui.QGraphicsOpacityEffect, QtGui.QGraphicsObject, QtCore.QPropertyAnimation, QtGui.QGraphicsItemAnimation, QtCore.QProcess, QtCore.QPluginLoader, QtCore.QPauseAnimation, QtCore.QParallelAnimationGroup, QtCore.QObjectCleanupHandler, QtCore.QMimeData, QtGui.QGraphicsEffect, QtGui.QGraphicsDropShadowEffect, QtGui.QGraphicsColorizeEffect, QtGui.QGraphicsBlurEffect, QtGui.QGraphicsAnchor, QtGui.QGesture, QtGui.QFrame, QtGui.QFormLayout, QtGui.QFontDialog, QtGui.QFontComboBox, QtCore.QLibrary, QtGui.QFocusFrame, QtGui.QFileSystemModel, QtCore.QIODevice, QtCore.QHistoryState, QtGui.QFileDialog, QtGui.QErrorMessage, QtGui.QDrag, QtGui.QDoubleValidator, QtGui.QDoubleSpinBox, QtGui.QDockWidget, QtGui.QDirModel, QtGui.QDialogButtonBox, QtGui.QDialog, QtGui.QDial, QtGui.QDesktopWidget, QtCore.QFutureWatcherBase, QtCore.QFinalState, QtGui.QDateTimeEdit, QtCore.QFileSystemWatcher, QtGui.QDateEdit, QtGui.QDataWidgetMapper, QtCore.QFile, QtGui.QCompleter, QtCore.QEventTransition, QtGui.QCommonStyle, QtGui.QCommandLinkButton, QtCore.QEventLoop, QtGui.QComboBox, QtNetwork.QUdpSocket, QtNetwork.QTcpSocket, QtNetwork.QTcpServer, QtGui.QColumnView, QtGui.QColorDialog, QtNetwork.QSslSocket, QtGui.QClipboard, QtGui.QCheckBox, QtNetwork.QNetworkSession, QtGui.QCalendarWidget, QtGui.QButtonGroup, QtNetwork.QNetworkReply, QtCore.QCoreApplication, QtGui.QBoxLayout, QtNetwork.QNetworkDiskCache, QtNetwork.QNetworkCookieJar, QtGui.QApplication, QtNetwork.QNetworkConfigurationManager, QtGui.QActionGroup, QtSql.QSqlTableModel, QtGui.QAction, QtWebKit.QWebView, QtNetwork.QNetworkAccessManager, QtSql.QSqlRelationalTableModel, QtSql.QSqlRelationalDelegate, QtGui.QAbstractTextDocumentLayout, QtNetwork.QLocalSocket, QtNetwork.QLocalServer, QtGui.QAbstractSpinBox, QtCore.QBuffer, QtSql.QSqlQueryModel, QtWebKit.QWebPluginFactory, QtGui.QAbstractSlider, QtNetwork.QHttpMultiPart, QtOpenGL.QGLWidget, QtGui.QAbstractScrollArea, QtCore.QAnimationGroup, QtNetwork.QHttp, QtCore.QAbstractTransition, QtSql.QSqlDriverPlugin, QtCore.QAbstractTableModel, QtCore.QAbstractState, QtWebKit.QWebPage, QtCore.QAbstractListModel, QtOpenGL.QGLShaderProgram, QtGui.QAbstractProxyModel, QtSql.QSqlDriver, QtSvg.QSvgWidget, QtOpenGL.QGLShader, QtGui.QAbstractPrintDialog, QtSvg.QSvgRenderer, QtWebKit.QWebInspector, QtGui.QAbstractPageSetupDialog, QtSvg.QGraphicsSvgItem, QtWebKit.QWebHistoryInterface, QtCore.QAbstractItemModel, QtScript.QScriptExtensionPlugin, QtNetwork.QFtp, QtGui.QAbstractItemView, QtWebKit.QWebFrame, QtScript.QScriptEngine, QtGui.QAbstractItemDelegate, QtCore.QAbstractEventDispatcher, QtNetwork.QAbstractSocket, QtGui.QAbstractButton, QtXmlPatterns.QAbstractUriResolver, QtCore.QAbstractAnimation, QtUiTools.QUiLoader, QtXmlPatterns.QAbstractMessageHandler, and QtNetwork.QAbstractNetworkCache.

new void QtCore.QObject.DeleteLater ( )

Schedules this object for deletion.

The object will be deleted when control returns to the event loop. If the event loop is not running when this function is called (e.g. deleteLater() is called on an object before QCoreApplication::exec()), the object will be deleted once the event loop is started.

Note that entering and leaving a new event loop (e.g., by opening a modal dialog) will not perform the deferred deletion; for the object to be deleted, the control must return to the event loop from which deleteLater() was called.

Note: It is safe to call this function more than once; when the first deferred deletion event is delivered, any pending events for the object are removed from the event queue.

See also destroyed() and QPointer.

static bool QtCore.QObject.Disconnect ( QObject  sender,
QMetaMethod  signal,
QObject  receiver,
QMetaMethod  member 
)
static

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

This function provides the same possibilities like disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method) but uses QMetaMethod to represent the signal and the method to be disconnected.

Additionally this function returnsfalse and no signals and slots disconnected if:

signal is not a member of sender class or one of its parent classes.

method is not a member of receiver class or one of its parent classes.

signal instance represents not a signal.

QMetaMethod() may be used as wildcard in the meaning "any signal" or "any slot in receiving object". In the same way 0 can be used for receiver in the meaning "any receiving object". In this case method should also be QMetaMethod(). sender parameter should be never 0.

This function was introduced in Qt 4.8.

See also disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method).

new bool QtCore.QObject.Disconnect ( QObject  receiver,
string  member = null 
)

This function overloads disconnect().

Disconnects all signals in this object from receiver's method.

A signal-slot connection is removed when either of the objects involved are destroyed.

static bool QtCore.QObject.Disconnect ( QObject  sender,
string  signal,
QObject  receiver,
string  member 
)
static

Disconnects signal in object sender from method in object receiver. Returns true if the connection is successfully broken; otherwise returns false.

A signal-slot connection is removed when either of the objects involved are destroyed.

disconnect() is typically used in three ways, as the following examples demonstrate.

Disconnect everything connected to an object's signals: disconnect(myObject, 0, 0, 0);

equivalent to the non-static overloaded function

myObject->disconnect();

Disconnect everything connected to a specific signal: disconnect(myObject, SIGNAL(mySignal()), 0, 0);

equivalent to the non-static overloaded function

myObject->disconnect(SIGNAL(mySignal()));

Disconnect a specific receiver: disconnect(myObject, 0, myReceiver, 0);

equivalent to the non-static overloaded function

myObject->disconnect(myReceiver);

new bool QtCore.QObject.Disconnect ( string  signal = null,
QObject  receiver = null,
string  member = null 
)

This function overloads disconnect().

Disconnects signal from method of receiver.

A signal-slot connection is removed when either of the objects involved are destroyed.

Note: This function is thread-safe.

virtual void QtCore.QObject.DisconnectNotify ( string  signal)
protectedvirtual

This virtual function is called when something has been disconnected from signal in this object.

See connectNotify() for an example of how to compare signal with a specific signal.

Warning: This function violates the object-oriented principle of modularity. However, it might be useful for optimizing access to expensive resources.

See also disconnect() and connectNotify().

Reimplemented in QtCore.QFutureWatcherBase, QtNetwork.QNetworkSession, and QtCore.QBuffer.

new void QtCore.QObject.Dispose ( )
new void QtCore.QObject.DumpObjectInfo ( )

Dumps information about signal connections, etc. for this object to the debug output.

This function is useful for debugging, but does nothing if the library has been compiled in release mode (i.e. without debugging information).

See also dumpObjectTree().

new void QtCore.QObject.DumpObjectTree ( )

Dumps a tree of children to the debug output.

This function is useful for debugging, but does nothing if the library has been compiled in release mode (i.e. without debugging information).

See also dumpObjectInfo().

new System.Collections.Generic.List<QByteArray> QtCore.QObject.DynamicPropertyNames ( )

Returns the names of all properties that were dynamically added to the object using setProperty().

This function was introduced in Qt 4.2.

virtual bool QtCore.QObject.EventFilter ( QObject  arg1,
QEvent  arg2 
)
virtual

Filters events if this object has been installed as an event filter for the watched object.

In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.

Example:

class MainWindow : public QMainWindow

{

public:

MainWindow();

protected:

bool eventFilter(QObject <em>obj, QEvent *ev);

private:

QTextEdit *textEdit;

};

MainWindow::MainWindow()

{

textEdit = new QTextEdit;

setCentralWidget(textEdit);

textEdit->installEventFilter(this);

}

bool MainWindow::eventFilter(QObject *obj, QEvent *event)

{

if (obj == textEdit) {

if (event->type() == QEvent::KeyPress) {

QKeyEvent *keyEvent = static_cast<QKeyEvent>(event);

qDebug() << "Ate key press" << keyEvent->key();

return true;

} else {

return false;

}

} else {

// pass the event on to the parent class

return QMainWindow::eventFilter(obj, event);

}

}

Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.

Warning: If you delete the receiver object in this function, be sure to return true. Otherwise, Qt will forward the event to the deleted object and the program might crash.

See also installEventFilter().

Reimplemented in QtGui.QWorkspace, QtGui.QWidgetAction, QtGui.QSizeGrip, QtGui.QScrollArea, QtGui.QMenuBar, QtGui.QFocusFrame, QtGui.QDialog, and QtGui.QCompleter.

new bool QtCore.QObject.Inherits ( string  classname)

Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

A class is considered to inherit itself.

Example:

QTimer *timer = new QTimer; // QTimer inherits QObject

timer->inherits("QTimer"); // returns true

timer->inherits("QObject"); // returns true

timer->inherits("QAbstractButton"); // returns false

// QVBoxLayout inherits QObject and QLayoutItem

QVBoxLayout *layout = new QVBoxLayout;

layout->inherits("QObject"); // returns true

layout->inherits("QLayoutItem"); // returns true (even though QLayoutItem is not a QObject)

If you need to determine whether an object is an instance of a particular class for the purpose of casting it, consider using qobject_cast<Type *>(object) instead.

See also metaObject() and qobject_cast().

new void QtCore.QObject.InstallEventFilter ( QObject  arg1)

Installs an event filter filterObj on this object. For example:

monitoredObj->installEventFilter(filterObj);

An event filter is an object that receives all events that are sent to this object. The filter can either stop the event or forward it to this object. The event filter filterObj receives events via its eventFilter() function. The eventFilter() function must return true if the event should be filtered, (i.e. stopped); otherwise it must return false.

If multiple event filters are installed on a single object, the filter that was installed last is activated first.

Here's a KeyPressEater class that eats the key presses of its monitored objects:

class KeyPressEater : public QObject

{

Q_OBJECT

...

protected:

bool eventFilter(QObject *obj, QEvent *event);

};

bool KeyPressEater::eventFilter(QObject *obj, QEvent *event)

{

if (event->type() == QEvent::KeyPress) {

QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);

qDebug("Ate key press d", keyEvent->key());

return true;

} else {

// standard event processing

return QObject::eventFilter(obj, event);

}

}

And here's how to install it on two widgets:

KeyPressEater *keyPressEater = new KeyPressEater(this);

QPushButton *pushButton = new QPushButton(this);

QListView *listView = new QListView(this);

pushButton->installEventFilter(keyPressEater);

listView->installEventFilter(keyPressEater);

The QShortcut class, for example, uses this technique to intercept shortcut key presses.

Warning: If you delete the receiver object in your eventFilter() function, be sure to return true. If you return false, Qt sends the event to the deleted object and the program will crash.

Note that the filtering object must be in the same thread as this object. If filterObj is in a different thread, this function does nothing. If either filterObj or this object are moved to a different thread after calling this function, the event filter will not be called until both objects have the same thread affinity again (it is not removed).

See also removeEventFilter(), eventFilter(), and event().

new bool QtCore.QObject.IsWidgetType ( )

Returns true if the object is a widget; otherwise returns false.

Calling this function is equivalent to calling inherits("QWidget"), except that it is much faster.

new void QtCore.QObject.KillTimer ( int  id)

Kills the timer with timer identifier, id.

The timer identifier is returned by startTimer() when a timer event is started.

See also timerEvent() and startTimer().

virtual void QtCore.QObject.OnChildEvent ( QChildEvent  arg1)
protectedvirtual

This event handler can be reimplemented in a subclass to receive child events. The event is passed in the event parameter.

QEvent::ChildAdded and QEvent::ChildRemoved events are sent to objects when children are added or removed. In both cases you can only rely on the child being a QObject, or if isWidgetType() returns true, a QWidget. (This is because, in the ChildAdded case, the child is not yet fully constructed, and in the ChildRemoved case it might have been destructed already).

QEvent::ChildPolished events are sent to widgets when children are polished, or when polished children are added. If you receive a child polished event, the child's construction is usually completed. However, this is not guaranteed, and multiple polish events may be delivered during the execution of a widget's constructor.

For every child widget, you receive one ChildAdded event, zero or more ChildPolished events, and one ChildRemoved event.

The ChildPolished event is omitted if a child is removed immediately after it is added. If a child is polished several times during construction and destruction, you may receive several child polished events for the same child, each time with a different virtual table.

See also event().

Reimplemented in QtGui.QWorkspace, QtGui.QSplitter, QtGui.QMdiSubWindow, QtGui.QMdiArea, and QtGui.QLayout.

virtual void QtCore.QObject.OnCustomEvent ( QEvent  arg1)
protectedvirtual

This event handler can be reimplemented in a subclass to receive custom events. Custom events are user-defined events with a type value at least as large as the QEvent::User item of the QEvent::Type enum, and is typically a QEvent subclass. The event is passed in the event parameter.

See also event() and QEvent.

new void QtCore.QObject.OnDestroyed ( QObject  arg1 = null)
protected

This signal is emitted immediately before the object obj is destroyed, and can not be blocked.

All the objects's children are destroyed immediately after this signal is emitted.

See also deleteLater() and QPointer.

virtual bool QtCore.QObject.OnEvent ( QEvent  arg1)
virtual

This virtual function receives events to an object and should return true if the event e was recognized and processed.

The event() function can be reimplemented to customize the behavior of an object.

See also installEventFilter(), timerEvent(), QApplication::sendEvent(), QApplication::postEvent(), and QWidget::event().

Reimplemented in QtGui.QWorkspace, QtGui.QWidgetAction, QtGui.QWidget, QtGui.QTreeWidget, QtGui.QToolButton, QtGui.QToolBox, QtGui.QTextEdit, QtGui.QTextBrowser, QtGui.QTableWidget, QtGui.QTabWidget, QtGui.QTabBar, QtGui.QStatusBar, QtGui.QStackedWidget, QtGui.QSplitterHandle, QtGui.QSplitter, QtGui.QSplashScreen, QtGui.QSizeGrip, QtGui.QShortcut, QtGui.QScrollArea, QtGui.QRubberBand, QtGui.QRadioButton, QtGui.QPushButton, QtGui.QProxyStyle, QtGui.QProgressBar, QtGui.QPlainTextEdit, QtGui.QMessageBox, QtGui.QMenuBar, QtGui.QMenu, QtGui.QListWidget, QtGui.QListView, QtGui.QLineEdit, QtGui.QLabel, QtGui.QLCDNumber, QtGui.QHeaderView, QtCore.QStateMachine, QtCore.QState, QtCore.QSocketNotifier, QtCore.QSignalTransition, QtCore.QPauseAnimation, QtGui.QFrame, QtGui.QFontComboBox, QtGui.QFocusFrame, QtCore.QHistoryState, QtGui.QDial, QtCore.QFinalState, QtGui.QCompleter, QtCore.QEventTransition, QtGui.QCommandLinkButton, QtGui.QClipboard, QtGui.QCheckBox, QtCore.QCoreApplication, QtGui.QApplication, QtGui.QAction, QtWebKit.QWebView, QtGui.QAbstractSlider, QtOpenGL.QGLWidget, QtGui.QAbstractScrollArea, QtCore.QAbstractTransition, QtWebKit.QWebPage, QtCore.QAbstractState, QtWebKit.QWebInspector, QtWebKit.QWebFrame, and QtGui.QAbstractButton.

virtual void QtCore.QObject.OnTimerEvent ( QTimerEvent  arg1)
protectedvirtual

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.

See also startTimer(), killTimer(), and event().

Reimplemented in QtGui.QToolButton, QtGui.QTextEdit, QtGui.QPlainTextEdit, QtGui.QMenuBar, QtGui.QMenu, QtGui.QMdiSubWindow, QtGui.QMdiArea, QtGui.QListView, QtCore.QTimer, QtGui.QAbstractSlider, and QtGui.QAbstractButton.

new object QtCore.QObject.Property ( string  name)

Returns the value of the object's name property.

If no such property exists, the returned variant is invalid.

Information about all available properties is provided through the metaObject() and dynamicPropertyNames().

See also setProperty(), QVariant::isValid(), metaObject(), and dynamicPropertyNames().

new int QtCore.QObject.Receivers ( string  signal)
protected

Returns the number of receivers connected to the signal.

Since both slots and signals can be used as receivers for signals, and the same connections can be made many times, the number of receivers is the same as the number of connections made from this signal.

When calling this function, you can use the SIGNAL() macro to pass a specific signal:

if (receivers(SIGNAL(valueChanged(QByteArray))) > 0) {

QByteArray data;

get_the_value(&data); // expensive operation

emit valueChanged(data);

}

As the code snippet above illustrates, you can use this function to avoid emitting a signal that nobody listens to.

Warning: This function violates the object-oriented principle of modularity. However, it might be useful when you need to perform expensive initialization only if something is connected to a signal.

static uint QtCore.QObject.RegisterUserData ( )
static
new void QtCore.QObject.RemoveEventFilter ( QObject  arg1)

Removes an event filter object obj from this object. The request is ignored if such an event filter has not been installed.

All event filters for this object are automatically removed when this object is destroyed.

It is always safe to remove an event filter, even during event filter activation (i.e. from the eventFilter() function).

See also installEventFilter(), eventFilter(), and event().

new QObject QtCore.QObject.Sender ( )
protected

Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. The pointer is valid only during the execution of the slot that calls this function from this object's thread context.

The pointer returned by this function becomes invalid if the sender is destroyed, or if the slot is disconnected from the sender's signal.

Warning: This function violates the object-oriented principle of modularity. However, getting access to the sender might be useful when many signals are connected to a single slot.

Warning: As mentioned above, the return value of this function is not valid when the slot is called via a Qt::DirectConnection from a thread different from this object's thread. Do not use this function in this type of scenario.

See also senderSignalIndex() and QSignalMapper.

new int QtCore.QObject.SenderSignalIndex ( )
protected

Returns the meta-method index of the signal that called the currently executing slot, which is a member of the class returned by sender(). If called outside of a slot activated by a signal, -1 is returned.

For signals with default parameters, this function will always return the index with all parameters, regardless of which was used with connect(). For example, the signal destroyed(QObject *obj = 0) will have two different indexes (with and without the parameter), but this function will always return the index with a parameter. This does not apply when overloading signals with different parameters.

Warning: This function violates the object-oriented principle of modularity. However, getting access to the signal index might be useful when many signals are connected to a single slot.

Warning: The return value of this function is not valid when the slot is called via a Qt::DirectConnection from a thread different from this object's thread. Do not use this function in this type of scenario.

This function was introduced in Qt 4.8.

See also sender(), QMetaObject::indexOfSignal(), and QMetaObject::method().

new bool QtCore.QObject.SetProperty ( string  name,
object  value 
)

Sets the value of the object's name property to value.

If the property is defined in the class using Q_PROPERTY then true is returned on success and false otherwise. If the property is not defined using Q_PROPERTY, and therefore not listed in the meta-object, it is added as a dynamic property and false is returned.

Information about all available properties is provided through the metaObject() and dynamicPropertyNames().

Dynamic properties can be queried again using property() and can be removed by setting the property value to an invalid QVariant. Changing the value of a dynamic property causes a QDynamicPropertyChangeEvent to be sent to the object.

Note: Dynamic properties starting with "q" are reserved for internal purposes.

See also property(), metaObject(), and dynamicPropertyNames().

new void QtCore.QObject.SetUserData ( uint  id,
QObjectUserData  data 
)
new bool QtCore.QObject.SignalsBlocked ( )

Returns true if signals are blocked; otherwise returns false.

Signals are not blocked by default.

See also blockSignals().

new int QtCore.QObject.StartTimer ( int  interval)

Starts a timer and returns a timer identifier, or returns zero if it could not start a timer.

A timer event will occur every interval milliseconds until killTimer() is called. If interval is 0, then the timer event occurs once every time there are no more window system events to process.

The virtual timerEvent() function is called with the QTimerEvent event parameter class when a timer event occurs. Reimplement this function to get timer events.

If multiple timers are running, the QTimerEvent::timerId() can be used to find out which timer was activated.

Example:

class MyObject : public QObject

{

Q_OBJECT

public:

MyObject(QObject *parent = 0);

protected:

void timerEvent(QTimerEvent *event);

};

MyObject::MyObject(QObject *parent)

: QObject(parent)

{

startTimer(50); // 50-millisecond timer

startTimer(1000); // 1-second timer

startTimer(60000); // 1-minute timer

}

void MyObject::timerEvent(QTimerEvent *event)

{

qDebug() << "Timer ID:" << event->timerId();

}

Note that QTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20 milliseconds; some provide more. If Qt is unable to deliver the requested number of timer events, it will silently discard some.

The QTimer class provides a high-level programming interface with single-shot timers and timer signals instead of events. There is also a QBasicTimer class that is more lightweight than QTimer and less clumsy than using timer IDs directly.

See also timerEvent(), killTimer(), and QTimer::singleShot().

static string QtCore.QObject.Tr ( string  s,
string  c = null 
)
static

Returns a translated version of sourceText, optionally based on a disambiguation string and value of n for strings containing plurals; otherwise returns sourceText itself if no appropriate translated string is available.

Example:

void MainWindow::createMenus()

{

fileMenu = menuBar()->addMenu(tr("&File"));

...

If the same sourceText is used in different roles within the same context, an additional identifying string may be passed in disambiguation (0 by default). In Qt 4.4 and earlier, this was the preferred way to pass comments to translators.

Example:

MyWindow::MyWindow()

{

QLabel *senderLabel = new QLabel(tr("Name:"));

QLabel *recipientLabel = new QLabel(tr("Name:", "recipient"));

...

See Writing Source Code for Translation for a detailed description of Qt's translation mechanisms in general, and the Disambiguation section for information on disambiguation.

Warning: This method is reentrant only if all translators are installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior.

See also trUtf8(), QApplication::translate(), QTextCodec::setCodecForTr(), and Internationalization with Qt.

static string QtCore.QObject.Tr ( string  s,
string  c,
int  n 
)
static

Returns a translated version of sourceText, optionally based on a disambiguation string and value of n for strings containing plurals; otherwise returns sourceText itself if no appropriate translated string is available.

Example:

void MainWindow::createMenus()

{

fileMenu = menuBar()->addMenu(tr("&File"));

...

If the same sourceText is used in different roles within the same context, an additional identifying string may be passed in disambiguation (0 by default). In Qt 4.4 and earlier, this was the preferred way to pass comments to translators.

Example:

MyWindow::MyWindow()

{

QLabel *senderLabel = new QLabel(tr("Name:"));

QLabel *recipientLabel = new QLabel(tr("Name:", "recipient"));

...

See Writing Source Code for Translation for a detailed description of Qt's translation mechanisms in general, and the Disambiguation section for information on disambiguation.

Warning: This method is reentrant only if all translators are installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior.

See also trUtf8(), QApplication::translate(), QTextCodec::setCodecForTr(), and Internationalization with Qt.

static string QtCore.QObject.TrUtf8 ( string  s,
string  c = null 
)
static

Returns a translated version of sourceText, or QString::fromUtf8(sourceText) if there is no appropriate version. It is otherwise identical to tr(sourceText, disambiguation, n).

Note that using the Utf8 variants of the translation functions is not required if CODECFORTR is already set to UTF-8 in the qmake project file and QTextCodec::setCodecForTr("UTF-8") is used.

Warning: This method is reentrant only if all translators are installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior.

Warning: For portability reasons, we recommend that you use escape sequences for specifying non-ASCII characters in string literals to trUtf8(). For example:

label->setText(tr("F\374r \310lise"));

See also tr(), QApplication::translate(), and Internationalization with Qt.

static string QtCore.QObject.TrUtf8 ( string  s,
string  c,
int  n 
)
static

Returns a translated version of sourceText, or QString::fromUtf8(sourceText) if there is no appropriate version. It is otherwise identical to tr(sourceText, disambiguation, n).

Note that using the Utf8 variants of the translation functions is not required if CODECFORTR is already set to UTF-8 in the qmake project file and QTextCodec::setCodecForTr("UTF-8") is used.

Warning: This method is reentrant only if all translators are installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior.

Warning: For portability reasons, we recommend that you use escape sequences for specifying non-ASCII characters in string literals to trUtf8(). For example:

label->setText(tr("F\374r \310lise"));

See also tr(), QApplication::translate(), and Internationalization with Qt.

new QObjectUserData QtCore.QObject.UserData ( uint  id)

Member Data Documentation

readonly List<QEventHandler> QtCore.QObject.eventFilters = new List<QEventHandler>()
protected
SmokeInvocation QtCore.QObject.interceptor
protected
object QtCore.QObject.Q_EMIT = null
protected

Property Documentation

virtual EventHandler<QEventArgs<QChildEvent> > QtCore.QObject.ChildEvent
addremove

This event handler can be reimplemented in a subclass to receive child events. The event is passed in the event parameter.

QEvent::ChildAdded and QEvent::ChildRemoved events are sent to objects when children are added or removed. In both cases you can only rely on the child being a QObject, or if isWidgetType() returns true, a QWidget. (This is because, in the ChildAdded case, the child is not yet fully constructed, and in the ChildRemoved case it might have been destructed already).

QEvent::ChildPolished events are sent to widgets when children are polished, or when polished children are added. If you receive a child polished event, the child's construction is usually completed. However, this is not guaranteed, and multiple polish events may be delivered during the execution of a widget's constructor.

For every child widget, you receive one ChildAdded event, zero or more ChildPolished events, and one ChildRemoved event.

The ChildPolished event is omitted if a child is removed immediately after it is added. If a child is polished several times during construction and destruction, you may receive several child polished events for the same child, each time with a different virtual table.

See also event().

virtual EventHandler<QEventArgs<QEvent> > QtCore.QObject.CustomEvent
addremove

This event handler can be reimplemented in a subclass to receive custom events. Custom events are user-defined events with a type value at least as large as the QEvent::User item of the QEvent::Type enum, and is typically a QEvent subclass. The event is passed in the event parameter.

See also event() and QEvent.

Slot QtCore.QObject.Destroyed
addremove

This signal is emitted immediately before the object obj is destroyed, and can not be blocked.

All the objects's children are destroyed immediately after this signal is emitted.

See also deleteLater() and QPointer.

Slot<QObject> QtCore.QObject.DestroyedQObject
addremove
new IQObjectSignals QtCore.QObject.Emit
getprotected
virtual EventHandler<QEventArgs<QEvent> > QtCore.QObject.Event
addremove

This virtual function receives events to an object and should return true if the event e was recognized and processed.

The event() function can be reimplemented to customize the behavior of an object.

See also installEventFilter(), timerEvent(), QApplication::sendEvent(), QApplication::postEvent(), and QWidget::event().

new string QtCore.QObject.ObjectName
getset

This property holds the name of this object.

You can find an object by name (and type) using findChild(). You can find a set of objects with findChildren().

qDebug("MyClass::setPrecision(): (s) invalid precision f",

qPrintable(objectName()), newPrecision);

By default, this property contains an empty string.

new QObject QtCore.QObject.Parent
getset

Returns a pointer to the parent object.

Makes the object a child of parent.

virtual System.IntPtr QtCore.QObject.SmokeObject
getset
new QMetaObject QtCore.QObject.StaticMetaObject
staticget

This variable stores the meta-object for the class.

A meta-object contains information about a class that inherits QObject, e.g. class name, superclass name, properties, signals and slots. Every class that contains the Q_OBJECT macro will also have a meta-object.

The meta-object information is required by the signal/slot connection mechanism and the property system. The inherits() function also makes use of the meta-object.

If you have a pointer to an object, you can use metaObject() to retrieve the meta-object associated with that object.

Example:

QPushButton::staticMetaObject.className(); // returns "QPushButton"

QObject *obj = new QPushButton;

obj->metaObject()->className(); // returns "QPushButton"

See also metaObject().

new QMetaObject QtCore.QObject.StaticQtMetaObject
staticgetprotected
virtual EventHandler<QEventArgs<QTimerEvent> > QtCore.QObject.TimerEvent
addremove

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.

See also startTimer(), killTimer(), and event().