Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qobject.h>
Inherited by Singleton< Config >, Singleton< DocUtilities >, AVFCameraRenderer, AVFCameraSession, AVFDisplayLink, AVFMediaEncoder, AVFMediaPlayer, AVFVideoRendererControl, Abstract_DBus_Interface, Abstract_DBus_Interface, AdapterManager, AdapterManager, AdvertisementWatcherWrapper, AdvertisementWatcherWrapper, AndroidBroadcastReceiver, AndroidCamera, AndroidCameraPrivate, AndroidCameraPrivate, AndroidConnectivityManager, AndroidMediaPlayer, AndroidMediaRecorder, AndroidSurfaceHolder, AndroidSurfaceTexture, AndroidSurfaceView, ApplicationData, Assets::Downloader::AssetDownloader, AssistantClient, AudioDecodingExample, AudioDecodingExample, AudioGenerator, AudioInputExample, AudioInputExample, AudioOutputExample, AudioOutputExample, AvatarExample, BluetoothManagement, BookmarkManager, Cache, Cache, CallbackRegistrationHelper, CallbackRegistrationHelper, CompositorLayer, CompositorLayer, Controller, Controller, Coordinate, Coordinate, CoreAudioSessionManager, Counter, CustomMediaInputSnippets, DBus_PendingCall_Interface, DBus_PendingCall_Interface, DBus_PendingReply_Interface, DBus_PendingReply_Interface, DBus_Process_String_Interface, DBus_Process_String_Interface, DarwinBluetooth::LECBManagerNotifier, DataModel, Decoder, DistanceFieldModelWorker, DocWrapper0::FruitBasket [private]
, DocWrapper0::FruitBasket [private]
, DocWrapper1::FruitBasket [private]
, DocWrapper1::FruitBasket [private]
, DocWrapper2::FruitBasket [private]
, DocWrapper2::FruitBasket [private]
, DtlsServer, DtlsServer, DynamicRoleModelNode, EVRCustomPresenter, FilterObject, FocusWatcher, FocusWatcher, Foo, Foo, Foo, Foo, GeoServiceProviderFactoryEsri, GlobalActions, HaikuViewProxy, HaikuWindowProxy, HciManager, HelloWorld, HelloWorld, HelpEngineWrapper, HelpEngineWrapperPrivate, HelpEngineWrapperPrivate, HelpGenerator, HelpGeneratorPrivate, HelpGeneratorPrivate, HelpViewerImpl::HelpViewerImplPrivate, InputStreamThread, KeyPressEater, KeyPressEater, LayoutWidgetTaskMenu, LocalSocketSignalTranslator, LocalSocketSignalTranslator, LocationSingleton, LowEnergyNotificationHub, MFDecoderSourceReader, MFPlayerSession, MFSourceReaderCallback, MFStream, MFVideoRendererControl, ManagerEngine, MediaExample, MediaExample, MediaGenerator, MultiDataModel, MyApp, MyApp, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyClass, MyColorPicker, MyContainerExtension, MyContainerExtension, MyCustomWidgets, MyCustomWidgets, MyExtension, MyExtension, MyFirstBenchmark, MyFirstBenchmark, MyFirstTest, MyFirstTest, MyGame, MyGame, MyInstance, MyInstance, MyMemberSheetExtension, MyMemberSheetExtension, MyObject, MyObject, MyObject, MyObject, MyObject, MyObject, MyObject, MyObject, MyObject, MyObject, MyPrivateInitStuff, MyPrivateInitStuff, MyPropertySheetExtension, MyPropertySheetExtension, MySingleton, MySingleton, MyTaskMenuExtension, MyTaskMenuExtension, MyTestClass, MyTestClass, MyVideoProducer, MyVideoProducer, MyWidget [private]
, MyWidget [private]
, NeardHelper, OpenPagesManager, Operation, Operation, OrgBluezProfile1ContextInterface, PhraseBook, PresentationFeedback, PressDelayHandler, PressDelayHandler, ProceduralMeshSubset, QAbstractAnimation, QAbstractAnimationTimer, QAbstractEventDispatcher, QAbstractGeoTileCache, QAbstractItemDelegate, QAbstractItemModel, QAbstractItemModelTester, QAbstractNetworkCache, QAbstractSocketEngine, QAbstractTextDocumentLayout, QAction, QActionGroup, QAmbientSound, QAmbientSoundPrivate, QAndroidAudioInput, QAndroidCameraSession, QAndroidCaptureSession, QAndroidMediaPlayer, QAndroidPlatformScreen, QAndroidPlatformServices, QAndroidServicePrivate, QAndroidServicePrivate, QAndroidVideoOutput, QAndroidViewSignalManager, QAnimationDriver, QAtSpiDBusConnection, QAudioBufferInput, QAudioBufferOutput, QAudioDecoder, QAudioEngine, QAudioInput, QAudioListener, QAudioOutput, QAudioRoom, QAudioSink, QAudioSource, QAudioStateChangeNotifier, QAxWidgetExtraInfo, QAxWidgetPlugin, QAxWidgetTaskMenu, QBackingStoreRhiSupportWindowWatcher, QBasicDrag, QBluetoothDeviceDiscoveryAgent, QBluetoothDeviceWatcherWinRT, QBluetoothLocalDevice, QBluetoothLocalDevicePrivate, QBluetoothServer, QBluetoothServiceDiscoveryAgent, QBluetoothServiceInfoPrivate, QBluetoothSocketBasePrivate, QBsdKeyboardHandler, QBsdMouseHandler, QButtonGroup, QCALayerBackingStore, QCamera, QChronoTimer, QClipboard, QCocoaClipboard, QCocoaIntegration, QCocoaWindow, QCompleter, QCoreApplication, QCtfLib, QDBusAbstractAdaptor, QDBusAbstractInterfaceBase, QDBusAdaptorConnector, QDBusConnectionPrivate, QDBusMenuConnection, QDBusPendingCallWatcher, QDBusPendingCallWatcherHelper, QDBusServer, QDBusServiceWatcher, QDBusVirtualObject, QDarwinAudioSinkBuffer, QDarwinAudioSourceBuffer, QDataWidgetMapper, QDeclarativeCategory, QDeclarativeGeoAddress, QDeclarativeGeoJsonData, QDeclarativeGeoLocation, QDeclarativeGeoRouteQuery, QDeclarativeGeoServiceProvider, QDeclarativeGeoServiceProviderRequirements, QDeclarativeMapLineProperties, QDeclarativePlace, QDeclarativePluginParameter, QDeclarativePosition, QDeclarativePositionSource, QDeclarativeSatelliteSource, QDesignerActions, QDesignerAppearanceOptionsPage, QDesignerClient, QDesignerFormEditorInterface, QDesignerFormWindowManagerInterface, QDesignerFormWindowToolInterface, QDesignerIntegrationInterface, QDesignerMemberSheet, QDesignerMetaDataBaseInterface, QDesignerPluginManager, QDesignerPropertySheet, QDesignerServer, QDesignerWidgetDataBaseInterface, QDesignerWidgetFactoryInterface, QDesignerWorkbench, QDeviceClosedNotifier, QDeviceDiscovery, QDnsLookup, QDnsLookupRunnable, QDrag, QDragManager, QDtls, QDtlsClientVerifier, QEglFSCursorDeviceListener, QEglFSDeviceIntegrationPlugin, QEglFSKmsEventHost, QEglFSKmsGbmCursorDeviceListener, QEglFSKmsInterruptHandler, QEglFSKmsInterruptHandler, QEvdevKeyboardHandler, QEvdevKeyboardManager, QEvdevMouseHandler, QEvdevMouseManager, QEvdevTabletHandler, QEvdevTabletManager, QEvdevTouchManager, QEvdevTouchScreenHandler, QEventLoop, QExtensionFactory, QExtensionManager, QFFmpeg::EncodingInitializer, QFFmpeg::PlaybackEngine, QFFmpeg::PlaybackEngineObject, QFFmpeg::RecordingEngine, QFFmpegMediaPlayer, QFFmpegMediaRecorder, QFFmpegSurfaceCaptureGrabber, QFactoryLoader, QFbCursorDeviceListener, QFbScreen, QFbVtHandler, QFileSelector, QFileSystemWatcher, QFileSystemWatcherEngine, QFontCache, QFutureWatcherBase, QGenericPlugin, QGenericUnixThemeDBusListener, QGenericUnixThemeDBusListener, QGeoAreaMonitorPollingPrivate, QGeoAreaMonitorPollingPrivate, QGeoAreaMonitorSource, QGeoCodeJsonParser, QGeoCodeReply, QGeoCodingManager, QGeoCodingManagerEngine, QGeoCoordinateObject, QGeoMap, QGeoMappingManager, QGeoMappingManagerEngine, QGeoNetworkAccessManager, QGeoPositionInfoSource, QGeoPositionInfoSourceFactoryAndroid, QGeoPositionInfoSourceFactoryCL, QGeoPositionInfoSourceFactoryGeoclue2, QGeoPositionInfoSourceFactoryGypsy, QGeoPositionInfoSourceFactoryNmea, QGeoPositionInfoSourceFactoryPoll, QGeoPositionInfoSourceFactoryWinRT, QGeoRouteParser, QGeoRouteReply, QGeoRouteXmlParser, QGeoRoutingManager, QGeoRoutingManagerEngine, QGeoSatelliteInfoSource, QGeoServiceProvider, QGeoServiceProviderFactoryItemsOverlay, QGeoServiceProviderFactoryMapbox, QGeoServiceProviderFactoryMapboxGL, QGeoServiceProviderFactoryNokia, QGeoServiceProviderFactoryOsm, QGeoTileFetcher, QGeoTileProviderOsm, QGeoTiledMapReply, QGeoTiledMapScene, QGeoUriProvider, QGesture, QGestureManager, QGraphicsAnchor, QGraphicsEffect, QGraphicsEffectSource, QGraphicsItemAnimation, QGraphicsObject, QGraphicsScene, QGraphicsSceneIndex, QGraphicsTransform, QGstVideoRenderer, QGstreamerAudioInput, QGstreamerAudioOutput, QGstreamerMediaPlayer, QGstreamerVideoOutput, QGstreamerVideoOverlay, QGtk3PortalInterface, QHaikuWindow, QHelpCollectionHandler, QHelpDBReader, QHelpEngineCore, QHelpEnginePlugin, QHelpFilterEngine, QHelpSearchEngine, QHelpSearchEngineCore, QHelpSearchQueryWidgetPrivate, QHelpSearchQueryWidgetPrivate, QHostInfoResult, QHttp2Connection, QHttp2ProtocolHandler, QHttp2Stream, QHttpMultiPart, QHttpNetworkConnection, QHttpNetworkConnectionChannel, QHttpNetworkReply, QHttpThreadDelegate, QIODevice, QIOSApplicationState, QIOSAssetData, QIOSAssetData, QIOSContext, QIOSScreen, QIOSTextInputOverlay, QIOSWindow, QIconEnginePlugin, QImageCapture, QImageIOPlugin, QInputControl, QInputDevice, QInputDeviceManager, QInputMethod, QIosOptionalPlugin_NSPhotoLibrary, QIosOptionalPlugin_NSPhotoLibrary, QItemSelectionModel, QItemSelectionModel, QItemSelectionModel, QJSEngine, QKeyMapper, QLanguageServer, QLanguageServerModule, QLayout, QLeAdvertiser, QLeDBusAdvertiser, QLibInputHandler, QLibInputKeyboard, QLibrary, QLocalServer, QLowEnergyController, QLowEnergyControllerPrivate, QLowEnergyService, QLowEnergyServicePrivate, QMacPanGestureRecognizer, QMdi::ControlContainer, QMediaCaptureSession, QMediaDevices, QMediaPlayer, QMediaRecorder, QMimeData, QMovie, QNearFieldManager, QNearFieldManagerPrivate, QNearFieldTarget, QNearFieldTargetPrivate, QNetworkAccessBackend, QNetworkAccessBackendFactory, QNetworkAccessCache, QNetworkAccessManager, QNetworkConnectionMonitor, QNetworkCookieJar, QNetworkInformation, QNetworkInformationBackend, QNetworkInformationBackendFactory, QNetworkListManagerEvents, QNfcNdefNotifier, QNmeaPositionInfoSourcePrivate, QNmeaSatelliteInfoSourcePrivate, QNmeaSimulatedReader, QNonContiguousByteDevice, QObjectCleanupHandler, QObjectContinuationWrapper, QObjectContinuationWrapper, QOffscreenSurface, QOpenGLCompositor, QOpenGLContext, QOpenGLContextGroup, QOpenGLDebugLogger, QOpenGLEngineShaderManager, QOpenGLShader, QOpenGLShaderProgram, QOpenGLTimeMonitor, QOpenGLTimerQuery, QOpenGLVertexArrayObject, QPMCache, QPMCache, QPacketProtocol, QPcscCard, QPcscManager, QPcscSlot, QPdfDocument, QPdfPageNavigator, QPdfPageRenderer, QPdfWriter, QPermissionPlugin, QPhysicsMaterial, QPhysicsWorld, QPipeWireCaptureHelper, QPixmapFilter, QPlaceManager, QPlaceManagerEngine, QPlaceReply, QPlatformAudioBufferInputBase, QPlatformAudioDecoder, QPlatformCursor, QPlatformDialogHelper, QPlatformGraphicsBuffer, QPlatformImageCapture, QPlatformInputContext, QPlatformInputContextPlugin, QPlatformIntegrationPlugin, QPlatformMediaCaptureSession, QPlatformMediaDevices, QPlatformMediaIntegration, QPlatformMediaPlugin, QPlatformMenu, QPlatformMenuBar, QPlatformMenuItem, QPlatformNativeInterface, QPlatformPrinterSupportPlugin, QPlatformServiceColorPicker, QPlatformSharedGraphicsCache, QPlatformSystemTrayIcon, QPlatformTextureList, QPlatformTextureListWatcher, QPlatformTextureListWatcher, QPlatformThemePlugin, QPlatformVideoDevices, QPlatformVideoSink, QPlatformVideoSource, QPulseAudioEngine, QQC2::QStyle, QQmlAbstractProfilerAdapter, QQmlAbstractProfilerAdapterFactory, QQmlApplication, QQmlBind, QQmlBoundSignalDeleter, QQmlBoundSignalDeleter, QQmlComponent, QQmlComponentAttached, QQmlConnections, QQmlContext, QQmlDataTest, QQmlDebugClient, QQmlDebugConnection, QQmlDebugServerConnection, QQmlDebugServerConnectionFactory, QQmlDebugService, QQmlDebugServiceFactory, QQmlDebugTranslationServicePrivate, QQmlDebugTranslationServicePrivate, QQmlDelayedCallQueue, QQmlDelegateChoice, QQmlDelegateModelAttached, QQmlDelegateModelGroup, QQmlDelegateModelItem, QQmlDelegateModelParts, QQmlEngineExtensionPlugin, QQmlExpression, QQmlExtensionPlugin, QQmlFileSelector, QQmlGadgetPtrWrapper, QQmlImageProviderBase, QQmlInstanceModel, QQmlInstantiator, QQmlLSQuickPlugin, QQmlListElement, QQmlListModelWorkerAgent, QQmlLocalStorage, QQmlLoggingCategoryBase, QQmlObjectModelAttached, QQmlPlatform, QQmlPreviewFileLoader, QQmlPreviewHandler, QQmlProfilerEventReceiver, QQmlPropertyMap, QQmlSettings, QQmlSettings, QQmlStandardPaths, QQmlSystemInformation, QQmlTableModelColumn, QQmlThreadNotifierProxyObject, QQmlThreadNotifierProxyObject, QQmlTimer, QQmlTypeLoaderNetworkReplyProxy, QQmlTypeNotAvailable, QQmlWatchProxy, QQmlWatchProxy, QQmlWatcher, QQmlXMLHttpRequest, QQmlXMLHttpRequest, QQmlXmlListModelRole, QQnxAbstractNavigator, QQnxAbstractVirtualKeyboard, QQnxAudioRecorder, QQnxButtonEventNotifier, QQnxCamera, QQnxMediaPlayer, QQnxNavigatorEventHandler, QQnxNavigatorEventNotifier, QQnxScreen, QQnxScreenEventHandler, QQnxWindowGrabber, QQuick3DAmbientSound, QQuick3DAudioEngine, QQuick3DBakedLightmap, QQuick3DDebugSettings, QQuick3DFog, QQuick3DInfiniteGrid, QQuick3DLightmapBaker, QQuick3DLightmapper, QQuick3DObject, QQuick3DParticleAbstractShape, QQuick3DParticleDirection, QQuick3DParticleEmitBurst, QQuick3DParticleSpriteSequence, QQuick3DParticleSystemLogging, QQuick3DQuaternionUtils, QQuick3DRenderStats, QQuick3DSGDirectRenderer, QQuick3DSceneManager, QQuick3DShaderUtilsBuffer, QQuick3DShaderUtilsRenderCommand, QQuick3DShaderUtilsRenderPass, QQuick3DShaderUtilsShader, QQuick3DShaderUtilsTextureInput, QQuick3DWindowAttachment, QQuick3DXrActionMapper, QQuick3DXrAnchorManager, QQuick3DXrAnchorManager, QQuick3DXrHandInput, QQuick3DXrInputAction, QQuick3DXrInputManager, QQuick3DXrInputManagerPrivate, QQuick3DXrManager, QQuick3DXrRuntimeInfo, QQuick3DXrSpatialAnchor, QQuick3DXrVirtualMouse, QQuickAbstractAnimation, QQuickAbstractDialog, QQuickAction, QQuickActionGroup, QQuickActionGroupAttached, QQuickAnchorSet, QQuickAnchors, QQuickAnimatedNode, QQuickAnimationController, QQuickAnimatorController, QQuickAnimatorProxyJob, QQuickApplicationWindowAttached, QQuickAttachedPropertyPropagator, QQuickBasicStyle, QQuickBehavior, QQuickBoundaryRule, QQuickButtonGroup, QQuickButtonGroupAttached, QQuickCalendar, QQuickCanvasContext, QQuickCloseEvent, QQuickColor, QQuickColorDialogImplAttached, QQuickColorGroup, QQuickContext2DTexture, QQuickControlsTestUtils::ComponentCreator, QQuickControlsTestUtils::StyleInfo, QQuickDeliveryAgent, QQuickDesignerCustomParserObject, QQuickDialogButtonBoxAttached, QQuickDirection, QQuickDrag, QQuickDragAttached, QQuickDragAxis, QQuickDragEvent, QQuickDropAreaDrag, QQuickEnterKeyAttached, QQuickEyeDropperEventFilter, QQuickFileDialogImplAttached, QQuickFileNameFilter, QQuickFlickableVisibleArea, QQuickFluentWinUI3FocusFrame, QQuickFocusFrame, QQuickFolderDialogImplAttached, QQuickFontDialogImplAttached, QQuickFontInfo, QQuickFontLoader, QQuickFontMetrics, QQuickFontObject, QQuickFontObject, QQuickFrameAnimation, QQuickFusionStyle, QQuickGrabGestureEvent, QQuickGradient, QQuickGradientStop, QQuickGraphicsInfo, QQuickIOSCursorFlashTimer, QQuickIOSStyle, QQuickImageResponse, QQuickImageSelector, QQuickIndicatorButton, QQuickInputMethod, QQuickItem, QQuickItemGrabResult, QQuickItemParticleAttached, QQuickItemViewAttached, QQuickKeyEvent, QQuickKeyNavigationAttached, QQuickKeysAttached, QQuickLabsPlatformDialog, QQuickLabsPlatformFileNameFilter, QQuickLabsPlatformMenu, QQuickLabsPlatformMenuBar, QQuickLabsPlatformMenuItem, QQuickLabsPlatformMenuItemGroup, QQuickLabsPlatformSystemTrayIcon, QQuickLayoutAttached, QQuickLayoutItemProxyAttachedData, QQuickLayoutMirroringAttached, QQuickMessageDialogImplAttached, QQuickMouseEvent, QQuickNativeMenuItem, QQuickOverlayAttached, QQuickPackage, QQuickPackageAttached, QQuickParticleExtruder, QQuickPath, QQuickPathElement, QQuickPathInterpolator, QQuickPathViewAttached, QQuickPdfDocument, QQuickPdfPageNavigator, QQuickPen, QQuickPinch, QQuickPinchEvent, QQuickPixmapCache, QQuickPixmapReply, QQuickPixmapReply, QQuickPlanarTransform, QQuickPlatformTheme, QQuickPlaylistItem, QQuickPointerHandler, QQuickPopup, QQuickPopupAnchors, QQuickPositionerAttached, QQuickRangeSliderNode, QQuickRenderControl, QQuickScaleGrid, QQuickScreen, QQuickScreenInfo, QQuickScrollBarAttached, QQuickScrollIndicatorAttached, QQuickSelectionRectangleAttached, QQuickShaderEffectMesh, QQuickShaderSourceAttachedNode, QQuickShaderSourceAttachedNode, QQuickShapeCurveRunnable, QQuickShapeFillRunnable, QQuickShapeGenericStrokeFillNode, QQuickShapeStrokeRunnable, QQuickShortcut, QQuickSplitHandleAttached, QQuickSplitViewAttached, QQuickStackLayoutAttached, QQuickStackViewAttached, QQuickState, QQuickStateGroup, QQuickStateOperation, QQuickStochasticEngine, QQuickStochasticState, QQuickSwipe, QQuickSwipeDelegateAttached, QQuickSwipeViewAttached, QQuickSystemPalette, QQuickTabBarAttached, QQuickTableViewAttached, QQuickTextAreaAttached, QQuickTextDocument, QQuickTextImageHandler, QQuickTextLine, QQuickTextMetrics, QQuickTextSelection, QQuickTextUtil, QQuickTextureFactory, QQuickTimeLine, QQuickToolTipAttached, QQuickTouchEventSequence, QQuickTouchPoint, QQuickTransform, QQuickTransition, QQuickTumblerAttached, QQuickViewSection, QQuickViewTransitionAttached, QQuickVisualTestUtils::SignalMultiSpy, QQuickWidgetPlugin, QQuickWindowAttached, QQuickWindowIncubationController, QQuickWindowIncubationController, QQuickWorkerScript, QQuickWorkerScriptEnginePrivate, QQuickWorkerScriptEnginePrivate, QRestAccessManager, QRhiWithThreadGuard, QRhiWithThreadGuard, QSGAbstractRenderer, QSGBatchRenderer::ShaderManager, QSGContext, QSGContextPlugin, QSGCurveFillNode, QSGGuiThreadShaderEffectManager, QSGRenderContext, QSGRenderLoop, QSGRhiAtlasTexture::AtlasBase, QSGRhiAtlasTexture::Manager, QSGShaderEffectNode, QSGTexture, QSGTextureProvider, QSSGAssetImportManager, QSSGAssetImporter, QSSGAssetImporterPlugin, QSSGCleanupObject, QSample, QSampleCache, QScreen, QScreenCapture, QScroller, QScrollerPrivate, QSessionManager, QSettings, QSharedImageLoader, QShortcut, QSignalMapper, QSignalSpyPrivate, QSignalSpyPrivate, QSingleShotTimer, QSizeChangeListener, QSmSocketReceiver, QSmSocketReceiver, QSocketNotifier, QSocks5BindStore, QSocks5BindStore, QSoundEffect, QSpatialSound, QSpiAccessibleBridge, QSpiApplicationAdaptor, QSpiDBusCache, QSqlDriver, QSqlDriverPlugin, QStackedWidgetPreviewEventFilter, QStyle, QStyleHints, QStylePlugin, QStyleSheetStyleCaches, QSvgRenderer, QSvgWidgetListener, QSvgWidgetListener, QSyntaxHighlighter, QSystemTrayIcon, QSystemTrayWatcher, QSystemTrayWatcher, QT_BEGIN_NAMESPACE::QIODeviceRegistry, QT_BEGIN_NAMESPACE::QIODeviceRegistry, QTabWidgetEventFilter, QTcpServer, QTest::WatchDog, QTest::WatchDog, QTestEventLoop, QTestRootObject, QTextDocument, QTextImageHandler, QTextObject, QThread, QThreadPool, QTimeLine, QTimer, QTlsBackend, QToolBoxHelper, QTranslator, QTsLibMouseHandler, QTuioHandler, QUiLoader, QUndoGroup, QUnifiedTimer, QV4::MultiplyWrappedQObjectMap, QV4::Promise::ReactionHandler, QV4DebuggerAgent, QV4Include, QValidator, QVideoFrameInput, QVideoOutputOrientationHandler, QVideoSink, QView3DPlugin, QVncClient, QVncServer, QVxKeyboardHandler, QVxKeyboardManager, QVxMouseHandler, QVxMouseManager, QVxTouchManager, QVxTouchScreenHandler, QWasmAudioInput, QWasmAudioOutput, QWasmClipboard, QWasmCompositor, QWasmIntegration, QWasmMediaPlayer, QWasmMediaRecorder, QWasmScreen, QWasmVideoOutput, QWaylandClient, QWaylandClientExtension, QWaylandDestroyListener, QWaylandDrag, QWaylandInputMethodControl, QWaylandKeymap, QWaylandObject, QWaylandQuickHardwareLayer, QWaylandQuickShellEventFilter, QWaylandQuickShellIntegration, QWaylandSurfaceGrabber, QWaylandView, QWaylandXdgOutputV1, QWaylandXdgPopup, QWaylandXdgToplevel, QWebViewPlugin, QWhatsThisPrivate, QWhatsThisPrivate, QWidget, QWidgetAnimator, QWidgetResizeHandler, QWinRTBluetoothDeviceDiscoveryWorker, QWinRTBluetoothDeviceDiscoveryWorker, QWinRTBluetoothServiceDiscoveryWorker, QWinRTBluetoothServiceDiscoveryWorker, QWinRTLowEnergyConnectionHandler, QWinRTLowEnergyConnectionHandler, QWinRTLowEnergyServiceHandler, QWinRTLowEnergyServiceHandler, QWindow, QWindowCapture, QWindowsCaRootFetcher, QWindowsMediaDeviceReader, QWindowsMediaDeviceSession, QWindowsMediaEncoder, QWindowsNativeDialogBase, QWindowsNativeDialogBase, QWindowsPipeReader, QWindowsPipeWriter, QWindowsRemovableDriveListener, QWindowsRemovableDriveListener, QXcbBasicConnection, QXcbClipboardTransaction, QXcbGlIntegrationPlugin, QXcbSystemTrayTracker, QXcbWindow, QXdgDesktopPortalThemePrivate, QXdgDesktopPortalThemePrivate, QmlJSDebugger::GlobalInspector, QmlJSDebugger::InspectTool, QmlJSDebugger::ObjectCreator, QmlJSDebugger::ObjectCreator, QmlJSDebugger::QQuickWindowInspector, QmlLintQuickPlugin, QmlLsp::QQmlCodeModel, QtAbstractEditorFactoryBase, QtAbstractPropertyManager, QtBluezDiscoveryManager, QtBluezPeripheralApplication, QtBluezPeripheralConnectionManager, QtBluezPeripheralGattObject, QtCocoaInterruptDispatcher, QtColorButtonPrivate, QtColorButtonPrivate, QtFullToolBarManager, QtFullToolBarManager, QtGradientDialogPrivate, QtGradientDialogPrivate, QtGradientEditorPrivate, QtGradientEditorPrivate, QtGradientManager, QtGradientStopsController, QtGradientStopsControllerPrivate, QtGradientStopsControllerPrivate, QtGradientStopsModel, QtGradientStopsWidgetPrivate, QtGradientStopsWidgetPrivate, QtMetaEnumWrapper, QtMetaEnumWrapper, QtObject, QtPrivate::QCalendarTextNavigator, QtPrivate::QCalendarTextNavigator, QtPrivate::QColorPickingEventFilter, QtPrivate::QColorPickingEventFilter, QtResourceModel, QtToolBarManager, QtWayland::BufferManager, QtWayland::ClientBufferIntegrationPlugin, QtWayland::DataDeviceManager, QtWayland::DataSource, QtWayland::HardwareLayerIntegration, QtWayland::HardwareLayerIntegrationPlugin, QtWayland::QWaylandTextureOrphanage, QtWayland::ServerBufferIntegrationPlugin, QtWaylandClient::QWaylandAbstractDecoration, QtWaylandClient::QWaylandAppMenu, QtWaylandClient::QWaylandClientBufferIntegrationPlugin, QtWaylandClient::QWaylandDataControlDeviceV1, QtWaylandClient::QWaylandDataControlSourceV1, QtWaylandClient::QWaylandDataDevice, QtWaylandClient::QWaylandDataSource, QtWaylandClient::QWaylandDecorationPlugin, QtWaylandClient::QWaylandDisplay, QtWaylandClient::QWaylandFractionalScale, QtWaylandClient::QWaylandInputDevice, QtWaylandClient::QWaylandInputDevice::Keyboard, QtWaylandClient::QWaylandInputDevice::Pointer, QtWaylandClient::QWaylandInputDeviceIntegrationPlugin, QtWaylandClient::QWaylandPrimarySelectionDeviceV1, QtWaylandClient::QWaylandPrimarySelectionSourceV1, QtWaylandClient::QWaylandServerBufferIntegrationPlugin, QtWaylandClient::QWaylandShellIntegrationPlugin, QtWaylandClient::QWaylandShellSurface, QtWaylandClient::QWaylandSurface, QtWaylandClient::QWaylandTabletSeatV2, QtWaylandClient::QWaylandXdgActivationTokenV1, QuickTestEvent, QuickTestImageObject, QuickTestImageObject, QuickTestResult, QuickTestUtil, ReaderThreadExecutionEnforcer, ReaderThreadExecutionEnforcer, RecentFiles, RemoteControl, RemoteDeviceManager, RenderWorker, RenderWorker, RequestHandler, ResponseProvider, RetryFuture, RetryFuture, RouteHandler, RunLoopDebugger, RunLoopDebugger, ScriptInterface, ScriptInterface, ServerAcceptanceThread, Setup, Setup, SharedTextureRegistry, SimpleReceiver, SimpleReceiver, SimulationWorker, SimulationWorker, Singleton< T >, SocketConnectWorker, SocketConnectWorker, SocketWorker, SocketWorker, SourceResolver, SpacerTaskMenu, SvgTextObject, Tasking::Barrier, Tasking::NetworkQuery, Tasking::TaskInterface, Tasking::TaskTree, Tasking::TaskTreeRunner, Tasking::TcpSocket, TestBenchmark, TestBenchmark, TestGui, TestHTTPServer, TestQString, TestQString, TileProvider, TimeoutForwarder, TimeoutForwarder, ToolBarManager, TranslationWatcher, TranslationWatcher, VideoExample, VideoExample, VideoExample, VideoExample, VideoGenerator, Vsp2Layer, Worker, Worker, qdesigner_internal::BuddyEditorPlugin, qdesigner_internal::ButtonGroupMenu, qdesigner_internal::ButtonGroupTaskMenu, qdesigner_internal::ComboEventFilter, qdesigner_internal::ComboEventFilter, qdesigner_internal::DesignerIconCache, qdesigner_internal::DesignerPixmapCache, qdesigner_internal::FormLayoutMenu, qdesigner_internal::FormWindowCursor, qdesigner_internal::FormWindowWidgetStack, qdesigner_internal::InPlaceWidgetHelper, qdesigner_internal::Layout, qdesigner_internal::LayoutAlignmentMenu, qdesigner_internal::LayoutAlignmentMenu, qdesigner_internal::MenuBarTaskMenu, qdesigner_internal::MenuTaskMenu, qdesigner_internal::MorphMenu, qdesigner_internal::PreviewManager, qdesigner_internal::PromotionTaskMenu, qdesigner_internal::QDesignerTaskMenu, qdesigner_internal::QDesignerWidgetItem, qdesigner_internal::QDockWidgetContainer, qdesigner_internal::QLayoutSupport, qdesigner_internal::QMainWindowContainer, qdesigner_internal::QMdiAreaContainer, qdesigner_internal::QMenuActionProvider, qdesigner_internal::QMenuBarActionProvider, qdesigner_internal::QScrollAreaContainer, qdesigner_internal::QStackedWidgetContainer, qdesigner_internal::QTabWidgetContainer, qdesigner_internal::QToolBarActionProvider, qdesigner_internal::QToolBoxContainer, qdesigner_internal::QWizardContainer, qdesigner_internal::QtQrcManager, qdesigner_internal::QtQrcManager, qdesigner_internal::ResetDecorator, qdesigner_internal::SignalSlotEditorPlugin, qdesigner_internal::SignaturePanel, qdesigner_internal::StatusBarTaskMenu, qdesigner_internal::TabOrderEditorPlugin, qdesigner_internal::TaskMenuComponent, qdesigner_internal::TaskMenuInlineEditor, qdesigner_internal::ToolBarEventFilter, qdesigner_internal::ToolBarTaskMenu, qdesigner_internal::WidgetSelection, qdesigner_internal::WizardPageChangeWatcher, qdesigner_internal::WizardPageChangeWatcher, qdesigner_internal::ZoomMenu, qdesigner_internal::ZoomedEventFilterRedirector, qdesigner_internal::ZoomedEventFilterRedirector, src_gui_opengl_qopengldebug::LogHandler, src_gui_opengl_qopengldebug::LogHandler, src_gui_opengl_qopengldebug::SnippetWrapper, src_gui_opengl_qopengldebug::SnippetWrapper, src_gui_util_qdesktopservices::MyHelpHandler, src_gui_util_qdesktopservices::MyHelpHandler, tst_qmltc_examples, and tst_qmltc_examples.
Public Slots | |
void | deleteLater () |
\threadsafe | |
Signals | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
Public Member Functions | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
bool | moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL) |
Changes the thread affinity for this object and its children and returns true on success. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
void | killTimer (Qt::TimerId id) |
template<typename T > | |
T | findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
T | findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Static Public Member Functions | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
Protected Member Functions | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Protected Attributes | |
QScopedPointer< QObjectData > | d_ptr |
Properties | |
QString | objectName |
the name of this object | |
Friends | |
struct | QMetaObject |
struct | QMetaObjectPrivate |
class | QMetaCallEvent |
class | QApplication |
class | QApplicationPrivate |
class | QCoreApplication |
class | QCoreApplicationPrivate |
class | QWidget |
class | QAccessibleWidget |
class | QThreadData |
Related Symbols | |
(Note that these are not member symbols.) | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
\inmodule QtCore
The QObject class is the base class of all Qt objects.
\reentrant
QObject is the heart of the Qt \l{Object Model}. The central feature in this model is a very powerful mechanism for seamless object communication called \l{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 \l {Object Trees & Ownership} {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.
Last but not least, QObject provides the basic timer support in Qt; see QChronoTimer 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 \l{moc}{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 \l{qobject_cast()}{qobject_cast}<QWidget *>({obj}) or {obj}->\l{inherits()}{inherits}("QWidget").
Some QObject functions, e.g. children(), return a QObjectList. QObjectList is a typedef for QList<QObject *>.
Constructs an object with parent object parent.
The parent of an object may be viewed as the object's owner. For instance, a \l{QDialog}{dialog box} is the parent of the \uicontrol{OK} and \uicontrol{Cancel} buttons it contains.
The destructor of a parent object destroys all child objects.
Setting parent to \nullptr constructs an object with no parent. If the object is a widget, it will become a top-level window.
Definition at line 937 of file qobject.cpp.
|
virtual |
Destroys the object, deleting all its child objects.
All signals to and from the object are automatically disconnected, and any pending posted events for the object are removed from the event queue. However, it is often safer to use deleteLater() rather than deleting a QObject subclass directly.
Definition at line 1007 of file qobject.cpp.
|
protected |
Definition at line 945 of file qobject.cpp.
Definition at line 1327 of file qobject.cpp.
|
inline |
|
inline |
|
noexcept |
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.
Signals emitted while being blocked are not buffered.
Definition at line 1586 of file qobject.cpp.
|
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 \l{QEvent::ChildAdded}{ChildAdded} case, the child is not yet fully constructed, and in the \l{QEvent::ChildRemoved}{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 \l{QEvent::ChildAdded}{ChildAdded} event, zero or more \l{QEvent::ChildPolished}{ChildPolished} events, and one \l{QEvent::ChildRemoved}{ChildRemoved} event.
The \l{QEvent::ChildPolished}{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.
Reimplemented in QGroupBox, QLayout, QMdiSubWindow, and QSplitter.
Definition at line 1509 of file qobject.cpp.
|
inline |
Returns a list of child objects.
The QObjectList class is defined in the {<QObject>} header file as the following:
\quotefromfile kernel/qobject.h \skipto /typedef .*QObjectList/ \printuntil QObjectList
The first child added is the \l{QList::first()}{first} object in the list and the last child added is the \l{QList::last()}{last} object in the list, i.e. new children are appended at the end.
Note that the list order changes when QWidget children are \l{QWidget::raise()}{raised} or \l{QWidget::lower()}{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.
|
inline |
|
static |
\threadsafe
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.
You must use the SIGNAL()
and SLOT()
macros when specifying the signal and the method, for example:
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:
A signal can also be connected to another signal:
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 in which the connections were made, when the signal is emitted.
The function returns a QMetaObject::Connection that represents a handle to a connection if it successfully connects the signal to the slot. The connection handle will be invalid 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. You can check if the handle is valid by casting it to a bool.
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 an invalid QMetaObject::Connection.
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
call qRegisterMetaType() to register the data type before you establish the connection.
Definition at line 2960 of file qobject.cpp.
|
static |
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. Returns a handle to the connection that can be used to disconnect it later.
The Connection handle will be invalid if it cannot create the connection, for example, the parameters were invalid. You can check if the QMetaObject::Connection is valid by casting it to a bool.
This function works in the same way as {connect(const QObject *sender, const char *signal,
const QObject *receiver, const char *method,
Qt::ConnectionType type)}
but it uses QMetaMethod to specify signal and method.
Definition at line 3101 of file qobject.cpp.
|
inlinestatic |
|
inlinestatic |
|
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, you can use QMetaMethod::fromSignal() as follows:
Reimplemented in QBuffer, QDBusAbstractInterface, QDBusConnectionInterface, QFFmpegAudioInput, QFutureWatcherBase, QGeoAreaMonitorPolling, QMediaDevices, and QQuick3DNode.
Definition at line 3498 of file qobject.cpp.
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.
Reimplemented in MFStream, QAndroidPlatformNativeInterface, QGstVideoRenderer, and QV4::Promise::ReactionHandler.
Definition at line 1523 of file qobject.cpp.
|
slot |
\threadsafe
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. If deleteLater() is called after the main event loop has stopped, the object will not be deleted. If deleteLater() is called on an object that lives in a thread with no running event loop, the object will be destroyed when the thread finishes.
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. This does not apply to objects deleted while a previous, nested event loop was still running: the Qt event loop will delete those objects as soon as the new nested event loop starts.
In situations where Qt is not driving the event dispatcher via e.g. QCoreApplication::exec() or QEventLoop::exec(), deferred deletes will not be processed automatically. To ensure deferred deletion in this scenario, the following workaround can be used:
Definition at line 2435 of file qobject.cpp.
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
All the objects's children are destroyed immediately after this signal is emitted.
|
static |
Disconnect a connection.
If the connection is invalid or has already been disconnected, do nothing and return false.
Definition at line 5334 of file qobject.cpp.
|
static |
\threadsafe
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. \list 1
equivalent to the non-static overloaded function
equivalent to the non-static overloaded function
equivalent to the non-static overloaded function
\endlist
disconnect-mismatch
disconnect-queued
\nullptr may be used as a wildcard, meaning "any signal", "any receiving object", or "any slot in the receiving object", respectively.
The sender may never be \nullptr. (You cannot disconnect signals from more than one object in a single call.)
If signal is \nullptr, it disconnects receiver and method from any signal. If not, only the specified signal is disconnected.
If receiver is \nullptr, it disconnects anything connected to signal. If not, slots in objects other than receiver are not disconnected.
If method is \nullptr, it disconnects anything that is connected to receiver. If not, only slots named method will be disconnected, and all other slots are left alone. The method must be \nullptr if receiver is left out, so you cannot disconnect a specifically-named slot on all objects.
disconnect-all
Definition at line 3241 of file qobject.cpp.
|
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 returns false and no signals and slots disconnected if: \list 1
\li \a signal is not a member of sender class or one of its parent classes. \li \a method is not a member of receiver class or one of its parent classes. \li \a signal instance represents not a signal.
\endlist
disconnect-mismatch
disconnect-queued
QMetaMethod() may be used as wildcard in the meaning "any signal" or "any slot in receiving object". In the same way \nullptr can be used for receiver in the meaning "any receiving object". In this case method should also be QMetaMethod(). sender parameter should be never \nullptr.
disconnect-all
Definition at line 3381 of file qobject.cpp.
|
inlinestatic |
|
inlinestatic |
|
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.
If all signals were disconnected from this object (e.g., the signal argument to disconnect() was \nullptr), disconnectNotify() is only called once, and the signal will be an invalid QMetaMethod (QMetaMethod::isValid() returns false
).
Reimplemented in QBuffer, QDBusAbstractInterface, QDBusConnectionInterface, QFFmpegAudioInput, QFutureWatcherBase, QGeoAreaMonitorPolling, and QQuick3DNode.
Definition at line 3533 of file qobject.cpp.
void QObject::dumpObjectInfo | ( | ) | const |
Dumps information about signal connections, etc.
for this object to the debug output.
Definition at line 4418 of file qobject.cpp.
void QObject::dumpObjectTree | ( | ) | const |
Dumps a tree of children to the debug output.
Definition at line 4404 of file qobject.cpp.
QList< QByteArray > QObject::dynamicPropertyNames | ( | ) | const |
Returns the names of all properties that were dynamically added to the object using setProperty().
Definition at line 4366 of file qobject.cpp.
|
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.
Make sure you call the parent event class implementation for all the events you did not handle.
Example:
Reimplemented in AVFDisplayLink, EVRCustomPresenter, MyApplication, MyApplication, MyClass, MyClass, MyWidget, MyWidget, QAbstractAnimation, QAbstractButton, QAbstractSlider, QAbstractSpinBox, QAction, QAnimationGroup, QApplication, QCalendarPopup, QCalendarWidget, QCheckBox, QComboBox, QCommandLinkButton, QCompleter, QCoreApplication, QDateTimeEdit, QDesigner, qdesigner_internal::PropertyEditor, qdesigner_internal::PropertyLineEdit, QDial, QDialogButtonBox, QDockWidget, QDockWidgetTitleButton, QDockWidgetTitleButton, QEglFSKmsEventHost, QEventDispatcherWin32, QEventLoop, QExceptionNotifier, QExceptionNotifier, QFbScreen, QFileInfoGatherer, QFileSystemModel, QFocusFrame, QFontComboBox, QFrame, QFutureWatcherBase, QGraphicsObject, QGraphicsProxyWidget, QGraphicsScene, QGraphicsSceneBspTreeIndex, QGraphicsWidget, QGroupBox, QGuiApplication, QKeySequenceEdit, QLabel, QLayoutWidget, QLCDNumber, QLineEdit, QMacStyle, QMainWindow, QMdi::ControlLabel, QMdi::ControlLabel, QMdi::ControllerWidget, QMdi::ControllerWidget, QMdiSubWindow, QMenu, QMenuBar, QMessageBox, QNetworkListManagerNetworkInformationBackend, QNetworkListManagerNetworkInformationBackend, QNetworkReplyImpl, QOpenGLWidget, QPaintDeviceWindow, QParallelAnimationGroup, QPauseAnimation, QProgressBar, QPropertyAnimation, QProxyStyle, QPushButton, QQmlDelegateModel, QQmlEngine, QQmlListModelWorkerAgent, QQmlThreadPrivate, QQmlThreadPrivate, QQmlTimer, QQuick3DViewport, QQuick3DXrManager, QQuickAbstractButton, QQuickAction, QQuickCanvasItem, QQuickComboBox, QQuickContext2DTexture, QQuickDeliveryAgent, QQuickDialogButtonBox, QQuickDragAttached, QQuickFolderBreadcrumbBar, QQuickHoverHandler, QQuickItem, QQuickItemGrabResult, QQuickLabsPlatformMenuItem, QQuickMenuBarItem, QQuickPinchArea, QQuickPixmapReply, QQuickPixmapReply, QQuickPointerHandler, QQuickPopupWindow, QQuickRhiItem, QQuickShaderEffect, QQuickShortcut, QQuickStyleItem, QQuickTextControl, QQuickTextEdit, QQuickTextInput, QQuickWidget, QQuickWindow, QQuickWindowQmlImpl, QQuickWorkerScript, QQuickWorkerScriptEnginePrivate, QQuickWorkerScriptEnginePrivate, QRadioButton, QReadNotifier, QReadNotifier, QRhiWidget, QRubberBand, QScrollBar, QSequentialAnimationGroup, QSettings, QSGRenderThread, QSGRenderThread, QSGSoftwareRenderThread, QSGSoftwareRenderThread, QSGSoftwareThreadedRenderLoop, QSGThreadedRenderLoop, QShortcut, QSizeGrip, QSlider, QSocketNotifier, QSpinBox, QSplashScreen, QSplitter, QSplitterHandle, QStackedWidget, QStatusBar, QSystemTrayIcon, QSystemTrayIconSys, QSystemTrayIconSys, QTabBar, QTabWidget, QtCharEdit, QtCharEdit, QThread, QToolBar, QToolBarExtension, QToolBox, QToolButton, QtResourceView, QVariantAnimation, qvfb_internal::CursorWindow, qvfb_internal::CursorWindow, QVideoWidget, QVideoWindow, QVncClient, QWaylandCompositorExtension, QWaylandOutput, QWidget, QWidgetAction, QWidgetTextControl, QWidgetWindow, QWindow, QWindowContainer, QWindowsPipeReader, QWindowsPipeWriter, QWizard, QWriteNotifier, QWriteNotifier, QXcbConnection, ReaderThreadExecutionEnforcer, ReaderThreadExecutionEnforcer, Spacer, src_gui_vulkan_qvulkaninstance2::VulkanWindow, src_gui_vulkan_qvulkaninstance2::VulkanWindow, Widget, Widget, Window, and Window.
Definition at line 1390 of file qobject.cpp.
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:
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.
Some events, such as \l QEvent::ShortcutOverride must be explicitly accepted (by calling \l {QEvent::}{accept()} on them) in order to prevent propagation.
Reimplemented in AbstractFindWidget, BookmarkDialog, BookmarkManager, BookmarkManagerWidget, ButtonWrapper, ButtonWrapper, CentralWidget, ContentWindow, FilterObject, FindWidget, FocusWatcher, FocusWatcher, FormMultiWidget, HelpViewer, IndexWindow, KeyPressEater, KeyPressEater, MainWindow, MainWindow, MainWindow, OpenPagesSwitcher, PhraseBookBox, QAlphaWidget, QAlphaWidget, QBackingStoreRhiSupportWindowWatcher, QBasicDrag, QCALayerBackingStore, QCalendarWidget, QComboBoxPrivateContainer, QCompleter, QDBusViewer, qdesigner_internal::ComboEventFilter, qdesigner_internal::ComboEventFilter, qdesigner_internal::FormWindow, qdesigner_internal::FormWindowManager, qdesigner_internal::InPlaceWidgetHelper, qdesigner_internal::PreviewManager, qdesigner_internal::QDesignerWidgetItem, qdesigner_internal::ToolBarEventFilter, qdesigner_internal::WidgetSelection, qdesigner_internal::ZoomedEventFilterRedirector, qdesigner_internal::ZoomedEventFilterRedirector, QDesignerMenu, QDesignerMenuBar, QDialog, QFocusFrame, QFontDialog, QGraphicsProxyWidget, QGraphicsScene, QHelpSearchQueryWidgetPrivate, QHelpSearchQueryWidgetPrivate, QIOSMenu, QItemDelegate, QMdiSubWindow, QMenuBar, QmlJSDebugger::QQuickWindowInspector, QPixmapStyle, QQmlPreviewHandler, QQuickAction, QQuickComboBox, QQuickEyeDropperEventFilter, QQuickMenuBar, QQuickOverlay, QQuickScrollView, QQuickTableView, QQuickWindowContainer, QSGGuiThreadRenderLoop, QSGGuiThreadRenderLoop, QSGThreadedRenderLoop, QSizeGrip, QSpiApplicationAdaptor, QStackedWidgetPreviewEventFilter, QStyledItemDelegate, QSvgWidgetListener, QSvgWidgetListener, QTabWidgetEventFilter, QtCharEdit, QtCharEdit, QtColorEditWidget, QtColorEditWidget, QtFontEditWidget, QtFontEditWidget, QTipLabel, QTipLabel, QToolBoxHelper, QtPrivate::QCalendarTextNavigator, QtPrivate::QCalendarTextNavigator, QtPrivate::QColorPickingEventFilter, QtPrivate::QColorPickingEventFilter, QtPropertyEditorDelegate, QtPropertyEditorDelegate, QtWayland::WlShellIntegration, QtWayland::XdgToplevelIntegration, qvfb_internal::CursorWindow, qvfb_internal::CursorWindow, QWaylandQuickShellEventFilter, QWhatsThisPrivate, QWhatsThisPrivate, QWidgetAction, QWidgetResizeHandler, QWindowContainer, QXcbDrag, SearchWidget, TopicChooser, TranslationWatcher, and TranslationWatcher.
Definition at line 1556 of file qobject.cpp.
|
inline |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
A null name argument causes all objects to be matched. An empty, non-null name matches only objects whose \l objectName is empty. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.
If there is more than one child matching the search, the most-direct ancestor is returned. If there are several most-direct ancestors, the first child in children() will be returned. In that case, it's better to use findChildren() to get the complete list of all children.
This example returns a child {QPushButton} of
{parentWidget} named
{"button1"}, even if the button isn't a direct child of the parent:
This example returns a {QListWidget} child of
{parentWidget}:
This example returns a child {QPushButton} of
{parentWidget} (its direct parent) named
{"button1"}:
This example returns a {QListWidget} child of
{parentWidget}, its direct parent:
{QString}, not
{QAnyStringView}.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns the child of this object that can be cast into type T, or \nullptr if there is no such object. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.
If there is more than one child matching the search, the most-direct ancestor is returned. If there are several most-direct ancestors, the first child in children() will be returned. In that case, it's better to use findChildren() to get the complete list of all children.
|
inline |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
A null name argument causes all objects to be matched, an empty one only those whose objectName is empty. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.
The following example shows how to find a list of child {QWidget}s of the specified
{parentWidget} named
{widgetname}:
This example returns all {QPushButton}s that are children of
{parentWidget}:
This example returns all {QPushButton}s that are immediate children of
{parentWidget}:
{QString}, not
{QAnyStringView}.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Returns all children of this object that can be cast to type T, or an empty list if there are no such objects. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.
|
inline |
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:
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.
Installs an event filter filterObj on this object.
For example:
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.
If filterObj has already been installed for this object, this function moves it so it acts as if it was installed last.
Here's a KeyPressEater
class that eats the key presses of its monitored objects:
And here's how to install it on two widgets:
The QShortcut class, for example, uses this technique to intercept shortcut key presses.
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).
Definition at line 2339 of file qobject.cpp.
|
inline |
Returns true
if the object is a QQuickItem; otherwise returns false
.
Calling this function is equivalent to calling {inherits("QQuickItem")}, except that it is much faster.
|
protected |
true
if the signal is connected to at least one receiver, otherwise returns false
.signal must be a signal member of this object, otherwise the behaviour is undefined.
As the code snippet above illustrates, you can use this function to avoid expensive initialization or emitting a signal that nobody listens to. However, in a multithreaded application, connections might change after this function returns and before the signal gets emitted.
Definition at line 2801 of file qobject.cpp.
|
inline |
|
inline |
void QObject::killTimer | ( | int | id | ) |
Kills the timer with timer identifier, id.
The timer identifier is returned by startTimer() when a timer event is started.
Definition at line 1912 of file qobject.cpp.
void QObject::killTimer | ( | Qt::TimerId | id | ) |
Definition at line 1921 of file qobject.cpp.
Changes the thread affinity for this object and its children and returns true
on success.
The object cannot be moved if it has a parent. Event processing will continue in the targetThread.
To move an object to the main thread, use QApplication::instance() to retrieve a pointer to the current application, and then use QApplication::thread() to retrieve the thread in which the application lives. For example:
If targetThread is \nullptr, all event processing for this object and its children stops, as they are no longer associated with any thread.
Note that all active timers for the object will be reset. The timers are first stopped in the current thread and restarted (with the same interval) in the targetThread. As a result, constantly moving an object between threads can postpone timer events indefinitely.
A QEvent::ThreadChange event is sent to this object just before the thread affinity is changed. You can handle this event to perform any special processing. Note that any new events that are posted to this object will be handled in the targetThread, provided it is not \nullptr: when it is \nullptr, no event processing for this object or its children can happen, as they are no longer associated with any thread.
Definition at line 1644 of file qobject.cpp.
QString QObject::objectName | ( | ) | const |
Definition at line 1276 of file qobject.cpp.
This signal is emitted after the object's name has been changed.
The new object name is passed as objectName.
|
inline |
Returns a pointer to the parent object.
QVariant QObject::property | ( | const char * | name | ) | const |
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().
Definition at line 4337 of file qobject.cpp.
|
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:
Definition at line 2740 of file qobject.cpp.
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).
Definition at line 2370 of file qobject.cpp.
|
protected |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
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.
Definition at line 2658 of file qobject.cpp.
|
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 = \nullptr)} 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.
Definition at line 2700 of file qobject.cpp.
|
inline |
void QObject::setObjectName | ( | QAnyStringView | name | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1313 of file qobject.cpp.
Makes the object a child of parent.
Definition at line 2195 of file qobject.cpp.
bool QObject::setProperty | ( | const char * | name, |
const QVariant & | 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.
Referenced by org.qtproject.qt.android.QtQuickViewContent::setProperty().
|
inline |
|
inlinenoexcept |
Returns true
if signals are blocked; otherwise returns false
.
Signals are not blocked by default.
int QObject::startTimer | ( | int | interval, |
Qt::TimerType | timerType = Qt::CoarseTimer ) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
This is equivalent to calling:
Definition at line 1818 of file qobject.cpp.
int QObject::startTimer | ( | std::chrono::nanoseconds | interval, |
Qt::TimerType | timerType = Qt::CoarseTimer ) |
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 until killTimer() is called. If interval is equal to {std::chrono::duration::zero()}, 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::id() method can be used to find out which timer was activated.
Example:
Note that the accuracy of the timer depends on the underlying operating system and hardware.
The timerType argument allows you to customize the accuracy of the timer. See Qt::TimerType for information on the different timer types. 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 and QChronoTimer classes provide 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 QChronoTimer but less clumsy than using timer IDs directly.
std::chrono::nanoseconds
, prior to that it was std::chrono::milliseconds
. This change is backwards compatible with older releases of Qt.Definition at line 1875 of file qobject.cpp.
QThread * QObject::thread | ( | ) | const |
Returns the thread in which the object lives.
Definition at line 1599 of file qobject.cpp.
|
protectedvirtual |
This event handler can be reimplemented in a subclass to receive timer events for the object.
QChronoTimer provides higher-level interfaces to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.
Reimplemented in MyObject, MyObject, PressDelayHandler, PressDelayHandler, QAbstractButton, QAbstractSlider, QAbstractSpinBox, QBalloonTip, QChronoTimer, QCocoaMenu, QComboBoxPrivateContainer, QComboBoxPrivateScroller, QDBusConnectionPrivate, QDefaultAnimationDriver, QFileSystemModel, QFontCache, QGeoPositionInfoSourceCL, QGeoTileFetcher, QKeySequenceEdit, QLineEdit, QMacPanGestureRecognizer, QMainWindowLayout, QMdiSubWindow, QMenu, QMenuBar, QNetworkAccessCache, QNmeaPositionInfoSourcePrivate, QNmeaSatelliteInfoSourcePrivate, QNmeaSimulatedReader, QPdfSearchModel, QPixelTool, QPMCache, QPMCache, QPollingFileSystemWatcherEngine, QPulseAudioSink, QPulseAudioSource, QQC2::QWindowsStyle, QQmlSettings, QQmlSettings, QQnxScreenEventHandler, QQuickAbstractButton, QQuickFlickable, QQuickIOSCursorFlashTimer, QQuickMaterialRipple, QQuickMenu, QQuickMonthGrid, QQuickMouseArea, QQuickPixmapCache, QQuickSpinBox, QQuickTapHandler, QQuickTextArea, QQuickTextControl, QQuickTextField, QQuickTextInput, QQuickToolTip, QQuickView, QQuickWheelHandler, QQuickWidget, QQuickWindowIncubationController, QQuickWindowIncubationController, QSingleShotTimer, QSocks5BindStore, QSocks5BindStore, QTabBar, QTestEventLoop, QTextDocumentLayout, QTimeLine, QTimer, QTipLabel, QTipLabel, QToolButton, QtPrivate::QCalendarTextNavigator, QtPrivate::QCalendarTextNavigator, QTreeModel, QUnifiedTimer, QWaylandQuickShellEventFilter, QWidgetLineControl, QWidgetTextControl, QWindowsDialogHelperBase< QPlatformFileDialogHelper >, QXcbClipboardTransaction, and QXcbDrag.
Definition at line 1471 of file qobject.cpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
related |
This function is equivalent to {obj}->\l{QObject::findChild()}{findChild}<T>(name).
This function is equivalent to {obj}->\l{QObject::findChild()}{findChild}<T>(name).
|
related |
This function is equivalent to {obj}->\l{QObject::findChildren()}{findChildren}<T>(name).
This function is equivalent to {obj}->\l{QObject::findChildren()}{findChildren}<T>(name).
|
friend |
|
friend |
|
friend |
|
related |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr.
If object is \nullptr then it will also return \nullptr.
The class T must inherit (directly or indirectly) QObject and be declared with the \l Q_OBJECT macro.
A class is considered to inherit itself.
Example:
The qobject_cast() function behaves similarly to the standard C++ dynamic_cast()
, with the advantages that it doesn't require RTTI support and it works across dynamic library boundaries.
qobject_cast() can also be used in conjunction with interfaces.
|
related |
\macro Q_CLASSINFO(Name, Value)
This macro associates extra information to the class, which is available using QObject::metaObject(). The extra information takes the form of a Name string and a Value literal string.
Example:
Qt makes use of the macro in \l{Qt D-Bus} and \l{Qt Qml} modules. For instance, when defining \l{QML Object Types} in C++, you can designate a property as the default one:
\macro Q_INTERFACES(...)
This macro tells Qt which interfaces the class implements. This is used when implementing plugins.
\macro Q_PROPERTY(...)
This macro is used for declaring properties in classes that inherit QObject. Properties behave like class data members, but they have additional features accessible through the \l {Meta-Object System}.
The property name and type and the READ
function are required. The type can be any type supported by QVariant, or it can be a user-defined type. The other items are optional, but a WRITE
function is common. The attributes default to true except USER
, which defaults to false.
For example:
For more details about how to use this macro, and a more detailed example of its use, see the discussion on \l {Qt's Property System}.
\macro Q_ENUMS(...)
In new code, you should prefer the use of the Q_ENUM() macro, which makes the type available also to the meta type system. For instance, QMetaEnum::fromType() will not work with types declared with Q_ENUMS().
This macro registers one or several enum types to the meta-object system.
If you want to register an enum that is declared in another class, the enum must be fully qualified with the name of the class defining it. In addition, the class defining the enum has to inherit QObject as well as declare the enum using Q_ENUMS().
\macro Q_FLAGS(...)
This macro registers one or several \l{QFlags}{flags types} with the meta-object system. It is typically used in a class definition to declare that values of a given enum can be used as flags and combined using the bitwise OR operator.
In new code, you should prefer the use of the Q_FLAG() macro, which makes the type available also to the meta type system.
\macro Q_ENUM(...)
This macro registers an enum type with the meta-object system. It must be placed after the enum declaration in a class that has the Q_OBJECT, Q_GADGET or Q_GADGET_EXPORT macro. For namespaces use \l Q_ENUM_NS() instead.
For example:
Enumerations that are declared with Q_ENUM have their QMetaEnum registered in the enclosing QMetaObject. You can also use QMetaEnum::fromType() to get the QMetaEnum.
Registered enumerations are automatically registered also to the Qt meta type system, making them known to QMetaType without the need to use Q_DECLARE_METATYPE(). This will enable useful features; for example, if used in a QVariant, you can convert them to strings. Likewise, passing them to QDebug will print out their names.
Mind that the enum values are stored as signed int
in the meta object system. Registering enumerations with values outside the range of values valid for int
will lead to overflows and potentially undefined behavior when accessing them through the meta object system. QML, for example, does access registered enumerations through the meta object system.
\macro Q_FLAG(...)
This macro registers a single \l{QFlags}{flags type} with the meta-object system. It is typically used in a class definition to declare that values of a given enum can be used as flags and combined using the bitwise OR operator. For namespaces use \l Q_FLAG_NS() instead.
The macro must be placed after the enum declaration. The declaration of the flags type is done using the \l Q_DECLARE_FLAGS() macro.
For example, in QItemSelectionModel, the \l{QItemSelectionModel::SelectionFlags}{SelectionFlags} flag is declared in the following way:
\macro Q_ENUM_NS(...)
This macro registers an enum type with the meta-object system. It must be placed after the enum declaration in a namespace that has the Q_NAMESPACE macro. It is the same as \l Q_ENUM but in a namespace.
Enumerations that are declared with Q_ENUM_NS have their QMetaEnum registered in the enclosing QMetaObject. You can also use QMetaEnum::fromType() to get the QMetaEnum.
Registered enumerations are automatically registered also to the Qt meta type system, making them known to QMetaType without the need to use Q_DECLARE_METATYPE(). This will enable useful features; for example, if used in a QVariant, you can convert them to strings. Likewise, passing them to QDebug will print out their names.
Mind that the enum values are stored as signed int
in the meta object system. Registering enumerations with values outside the range of values valid for int
will lead to overflows and potentially undefined behavior when accessing them through the meta object system. QML, for example, does access registered enumerations through the meta object system.
\macro Q_FLAG_NS(...)
This macro registers a single \l{QFlags}{flags type} with the meta-object system. It is used in a namespace that has the Q_NAMESPACE macro, to declare that values of a given enum can be used as flags and combined using the bitwise OR operator. It is the same as \l Q_FLAG but in a namespace.
The macro must be placed after the enum declaration.
\macro Q_OBJECT \relates QObject The Q_OBJECT macro is used to enable meta-object features, such as dynamic properties, signals, and slots. You can add the Q_OBJECT macro to any section of a class definition that declares its own signals and slots or that uses other services provided by Qt's meta-object system.
! [qobject-macros-private-access-specifier]
private:
access specifier. If you declare members immediately after this macro, those members will also be private. To add public (or protected) members right after the macro, use a {public:}
(or {protected:}
) access specifier. ! [qobject-macros-private-access-specifier] Example: \snippet signalsandslots/signalsandslots.h 1 \codeline \snippet signalsandslots/signalsandslots.h 2 \snippet signalsandslots/signalsandslots.h 3 \note This macro requires the class to be a subclass of QObject. Use Q_GADGET or Q_GADGET_EXPORT instead of Q_OBJECT to enable the meta object system's support for enums in a class that is not a QObject subclass. \sa {Meta-Object System}, {Signals and Slots}, {Qt's Property System}
\macro Q_GADGET
The Q_GADGET macro is a lighter version of the Q_OBJECT macro for classes that do not inherit from QObject but still want to use some of the reflection capabilities offered by QMetaObject.
qobject-macros-private-access-specifier
Q_GADGETs can have Q_ENUM, Q_PROPERTY and Q_INVOKABLE, but they cannot have signals or slots.
Q_GADGET makes a class member, {staticMetaObject}, available.
{staticMetaObject} is of type QMetaObject and provides access to the enums declared with Q_ENUM.
\macro Q_GADGET_EXPORT(EXPORT_MACRO)
The Q_GADGET_EXPORT macro works exactly like the Q_GADGET macro. However, the {staticMetaObject} variable that is made available (see Q_GADGET) is declared with the supplied EXPORT_MACRO qualifier. This is useful if the object needs to be exported from a dynamic library, but the enclosing class as a whole should not be (e.g. because it consists of mostly inline functions).
qobject-macros-private-access-specifier
For example:
\macro Q_NAMESPACE
The Q_NAMESPACE macro can be used to add QMetaObject capabilities to a namespace.
Q_NAMESPACEs can have Q_CLASSINFO, Q_ENUM_NS, Q_FLAG_NS, but they cannot have Q_ENUM, Q_FLAG, Q_PROPERTY, Q_INVOKABLE, signals nor slots.
Q_NAMESPACE makes an external variable, {staticMetaObject}, available.
{staticMetaObject} is of type QMetaObject and provides access to the enums declared with Q_ENUM_NS/Q_FLAG_NS.
For example:
\macro Q_NAMESPACE_EXPORT(EXPORT_MACRO)
The Q_NAMESPACE_EXPORT macro can be used to add QMetaObject capabilities to a namespace.
It works exactly like the Q_NAMESPACE macro. However, the external {staticMetaObject} variable that gets defined in the namespace is declared with the supplied EXPORT_MACRO qualifier. This is useful if the object needs to be exported from a dynamic library.
For example:
\macro Q_MOC_INCLUDE
The Q_MOC_INCLUDE macro can be used within or outside a class, and tell the \l{moc}{Meta Object Compiler} to add an include.
This is useful if the types you use as properties or signal/slots arguments are forward declared.
\macro Q_SIGNALS
Use this macro to replace the signals
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SIGNAL
This is an additional macro that allows you to mark a single function as a signal. It can be quite useful, especially when you use a 3rd-party source code parser which doesn't understand a signals
or Q_SIGNALS
groups.
Use this macro to replace the signals
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SLOTS
Use this macro to replace the slots
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SLOT
This is an additional macro that allows you to mark a single function as a slot. It can be quite useful, especially when you use a 3rd-party source code parser which doesn't understand a slots
or Q_SLOTS
groups.
Use this macro to replace the slots
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_EMIT
Use this macro to replace the emit
keyword for emitting signals, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_INVOKABLE
Apply this macro to declarations of member functions to allow them to be invoked via the meta-object system. The macro is written before the return type, as shown in the following example:
The invokableMethod()
function is marked up using Q_INVOKABLE, causing it to be registered with the meta-object system and enabling it to be invoked using QMetaObject::invokeMethod(). Since normalMethod()
function is not registered in this way, it cannot be invoked using QMetaObject::invokeMethod().
If an invokable member function returns a pointer to a QObject or a subclass of QObject and it is invoked from QML, special ownership rules apply. See \l{qtqml-cppintegration-data.html}{Data Type Conversion Between QML and C++} for more information.
\macro Q_REVISION
Apply this macro to declarations of member functions to tag them with a revision number in the meta-object system. The macro is written before the return type, as shown in the following example:
This is useful when using the meta-object system to dynamically expose objects to another API, as you can match the version expected by multiple versions of the other API. Consider the following simplified example:
Using the same Window class as the previous example, the newProperty and newMethod would only be exposed in this code when the expected version is {2.1} or greater.
Since all methods are considered to be in revision {0} if untagged, a tag of
{Q_REVISION(0)} or
{Q_REVISION(0, 0)} is invalid and ignored.
You can pass one or two integer parameters to {Q_REVISION}. If you pass one parameter, it denotes the minor version only. This means that the major version is unspecified. If you pass two, the first parameter is the major version and the second parameter is the minor version.
This tag is not used by the meta-object system itself. Currently this is only used by the QtQml module.
For a more generic string tag, see \l QMetaMethod::tag()
\macro Q_SET_OBJECT_NAME(Object)
This macro assigns Object the objectName "Object".
It doesn't matter whether Object is a pointer or not, the macro figures that out by itself.
\macro QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
Defining this macro will disable narrowing and floating-point-to-integral conversions between the arguments carried by a signal and the arguments accepted by a slot, when the signal and the slot are connected using the PMF-based syntax.
\macro QT_NO_CONTEXTLESS_CONNECT
Defining this macro will disable the overload of QObject::connect() that connects a signal to a functor, without also specifying a QObject as a receiver/context object (that is, the 3-arguments overload of QObject::connect()).
Using the context-less overload is error prone, because it is easy to connect to functors that depend on some local state of the receiving end. If such local state gets destroyed, the connection does not get automatically disconnected.
Moreover, such connections are always direct connections, which may cause issues in multithreaded scenarios (for instance, if the signal is emitted from another thread).
Synonym for QList<QObject *>.
This macro associates extra information to the class, which is available using QObject::metaObject(). The extra information takes the form of a Name string and a Value literal string.
Example:
Qt makes use of the macro in \l{Qt D-Bus} and \l{Qt Qml} modules. For instance, when defining \l{QML Object Types} in C++, you can designate a property as the default one:
\macro Q_INTERFACES(...)
This macro tells Qt which interfaces the class implements. This is used when implementing plugins.
\macro Q_PROPERTY(...)
This macro is used for declaring properties in classes that inherit QObject. Properties behave like class data members, but they have additional features accessible through the \l {Meta-Object System}.
The property name and type and the READ
function are required. The type can be any type supported by QVariant, or it can be a user-defined type. The other items are optional, but a WRITE
function is common. The attributes default to true except USER
, which defaults to false.
For example:
For more details about how to use this macro, and a more detailed example of its use, see the discussion on \l {Qt's Property System}.
\macro Q_ENUMS(...)
In new code, you should prefer the use of the Q_ENUM() macro, which makes the type available also to the meta type system. For instance, QMetaEnum::fromType() will not work with types declared with Q_ENUMS().
This macro registers one or several enum types to the meta-object system.
If you want to register an enum that is declared in another class, the enum must be fully qualified with the name of the class defining it. In addition, the class defining the enum has to inherit QObject as well as declare the enum using Q_ENUMS().
\macro Q_FLAGS(...)
This macro registers one or several \l{QFlags}{flags types} with the meta-object system. It is typically used in a class definition to declare that values of a given enum can be used as flags and combined using the bitwise OR operator.
In new code, you should prefer the use of the Q_FLAG() macro, which makes the type available also to the meta type system.
\macro Q_ENUM(...)
This macro registers an enum type with the meta-object system. It must be placed after the enum declaration in a class that has the Q_OBJECT, Q_GADGET or Q_GADGET_EXPORT macro. For namespaces use \l Q_ENUM_NS() instead.
For example:
Enumerations that are declared with Q_ENUM have their QMetaEnum registered in the enclosing QMetaObject. You can also use QMetaEnum::fromType() to get the QMetaEnum.
Registered enumerations are automatically registered also to the Qt meta type system, making them known to QMetaType without the need to use Q_DECLARE_METATYPE(). This will enable useful features; for example, if used in a QVariant, you can convert them to strings. Likewise, passing them to QDebug will print out their names.
Mind that the enum values are stored as signed int
in the meta object system. Registering enumerations with values outside the range of values valid for int
will lead to overflows and potentially undefined behavior when accessing them through the meta object system. QML, for example, does access registered enumerations through the meta object system.
\macro Q_FLAG(...)
This macro registers a single \l{QFlags}{flags type} with the meta-object system. It is typically used in a class definition to declare that values of a given enum can be used as flags and combined using the bitwise OR operator. For namespaces use \l Q_FLAG_NS() instead.
The macro must be placed after the enum declaration. The declaration of the flags type is done using the \l Q_DECLARE_FLAGS() macro.
For example, in QItemSelectionModel, the \l{QItemSelectionModel::SelectionFlags}{SelectionFlags} flag is declared in the following way:
\macro Q_ENUM_NS(...)
This macro registers an enum type with the meta-object system. It must be placed after the enum declaration in a namespace that has the Q_NAMESPACE macro. It is the same as \l Q_ENUM but in a namespace.
Enumerations that are declared with Q_ENUM_NS have their QMetaEnum registered in the enclosing QMetaObject. You can also use QMetaEnum::fromType() to get the QMetaEnum.
Registered enumerations are automatically registered also to the Qt meta type system, making them known to QMetaType without the need to use Q_DECLARE_METATYPE(). This will enable useful features; for example, if used in a QVariant, you can convert them to strings. Likewise, passing them to QDebug will print out their names.
Mind that the enum values are stored as signed int
in the meta object system. Registering enumerations with values outside the range of values valid for int
will lead to overflows and potentially undefined behavior when accessing them through the meta object system. QML, for example, does access registered enumerations through the meta object system.
\macro Q_FLAG_NS(...)
This macro registers a single \l{QFlags}{flags type} with the meta-object system. It is used in a namespace that has the Q_NAMESPACE macro, to declare that values of a given enum can be used as flags and combined using the bitwise OR operator. It is the same as \l Q_FLAG but in a namespace.
The macro must be placed after the enum declaration.
\macro Q_OBJECT \relates QObject The Q_OBJECT macro is used to enable meta-object features, such as dynamic properties, signals, and slots. You can add the Q_OBJECT macro to any section of a class definition that declares its own signals and slots or that uses other services provided by Qt's meta-object system.
! [qobject-macros-private-access-specifier]
private:
access specifier. If you declare members immediately after this macro, those members will also be private. To add public (or protected) members right after the macro, use a {public:}
(or {protected:}
) access specifier. ! [qobject-macros-private-access-specifier] Example: \snippet signalsandslots/signalsandslots.h 1 \codeline \snippet signalsandslots/signalsandslots.h 2 \snippet signalsandslots/signalsandslots.h 3 \note This macro requires the class to be a subclass of QObject. Use Q_GADGET or Q_GADGET_EXPORT instead of Q_OBJECT to enable the meta object system's support for enums in a class that is not a QObject subclass. \sa {Meta-Object System}, {Signals and Slots}, {Qt's Property System}
\macro Q_GADGET
The Q_GADGET macro is a lighter version of the Q_OBJECT macro for classes that do not inherit from QObject but still want to use some of the reflection capabilities offered by QMetaObject.
qobject-macros-private-access-specifier
Q_GADGETs can have Q_ENUM, Q_PROPERTY and Q_INVOKABLE, but they cannot have signals or slots.
Q_GADGET makes a class member, {staticMetaObject}, available.
{staticMetaObject} is of type QMetaObject and provides access to the enums declared with Q_ENUM.
\macro Q_GADGET_EXPORT(EXPORT_MACRO)
The Q_GADGET_EXPORT macro works exactly like the Q_GADGET macro. However, the {staticMetaObject} variable that is made available (see Q_GADGET) is declared with the supplied EXPORT_MACRO qualifier. This is useful if the object needs to be exported from a dynamic library, but the enclosing class as a whole should not be (e.g. because it consists of mostly inline functions).
qobject-macros-private-access-specifier
For example:
\macro Q_NAMESPACE
The Q_NAMESPACE macro can be used to add QMetaObject capabilities to a namespace.
Q_NAMESPACEs can have Q_CLASSINFO, Q_ENUM_NS, Q_FLAG_NS, but they cannot have Q_ENUM, Q_FLAG, Q_PROPERTY, Q_INVOKABLE, signals nor slots.
Q_NAMESPACE makes an external variable, {staticMetaObject}, available.
{staticMetaObject} is of type QMetaObject and provides access to the enums declared with Q_ENUM_NS/Q_FLAG_NS.
For example:
\macro Q_NAMESPACE_EXPORT(EXPORT_MACRO)
The Q_NAMESPACE_EXPORT macro can be used to add QMetaObject capabilities to a namespace.
It works exactly like the Q_NAMESPACE macro. However, the external {staticMetaObject} variable that gets defined in the namespace is declared with the supplied EXPORT_MACRO qualifier. This is useful if the object needs to be exported from a dynamic library.
For example:
\macro Q_MOC_INCLUDE
The Q_MOC_INCLUDE macro can be used within or outside a class, and tell the \l{moc}{Meta Object Compiler} to add an include.
This is useful if the types you use as properties or signal/slots arguments are forward declared.
\macro Q_SIGNALS
Use this macro to replace the signals
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SIGNAL
This is an additional macro that allows you to mark a single function as a signal. It can be quite useful, especially when you use a 3rd-party source code parser which doesn't understand a signals
or Q_SIGNALS
groups.
Use this macro to replace the signals
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SLOTS
Use this macro to replace the slots
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_SLOT
This is an additional macro that allows you to mark a single function as a slot. It can be quite useful, especially when you use a 3rd-party source code parser which doesn't understand a slots
or Q_SLOTS
groups.
Use this macro to replace the slots
keyword in class declarations, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_EMIT
Use this macro to replace the emit
keyword for emitting signals, when you want to use Qt Signals and Slots with a \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.
The macro is normally used when no_keywords
is specified with the CONFIG
variable in the .pro file, but it can be used even when
no_keywords
is not specified.
\macro Q_INVOKABLE
Apply this macro to declarations of member functions to allow them to be invoked via the meta-object system. The macro is written before the return type, as shown in the following example:
The invokableMethod()
function is marked up using Q_INVOKABLE, causing it to be registered with the meta-object system and enabling it to be invoked using QMetaObject::invokeMethod(). Since normalMethod()
function is not registered in this way, it cannot be invoked using QMetaObject::invokeMethod().
If an invokable member function returns a pointer to a QObject or a subclass of QObject and it is invoked from QML, special ownership rules apply. See \l{qtqml-cppintegration-data.html}{Data Type Conversion Between QML and C++} for more information.
\macro Q_REVISION
Apply this macro to declarations of member functions to tag them with a revision number in the meta-object system. The macro is written before the return type, as shown in the following example:
This is useful when using the meta-object system to dynamically expose objects to another API, as you can match the version expected by multiple versions of the other API. Consider the following simplified example:
Using the same Window class as the previous example, the newProperty and newMethod would only be exposed in this code when the expected version is {2.1} or greater.
Since all methods are considered to be in revision {0} if untagged, a tag of
{Q_REVISION(0)} or
{Q_REVISION(0, 0)} is invalid and ignored.
You can pass one or two integer parameters to {Q_REVISION}. If you pass one parameter, it denotes the minor version only. This means that the major version is unspecified. If you pass two, the first parameter is the major version and the second parameter is the minor version.
This tag is not used by the meta-object system itself. Currently this is only used by the QtQml module.
For a more generic string tag, see \l QMetaMethod::tag()
\macro Q_SET_OBJECT_NAME(Object)
This macro assigns Object the objectName "Object".
It doesn't matter whether Object is a pointer or not, the macro figures that out by itself.
\macro QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
Defining this macro will disable narrowing and floating-point-to-integral conversions between the arguments carried by a signal and the arguments accepted by a slot, when the signal and the slot are connected using the PMF-based syntax.
\macro QT_NO_CONTEXTLESS_CONNECT
Defining this macro will disable the overload of QObject::connect() that connects a signal to a functor, without also specifying a QObject as a receiver/context object (that is, the 3-arguments overload of QObject::connect()).
Using the context-less overload is error prone, because it is easy to connect to functors that depend on some local state of the receiving end. If such local state gets destroyed, the connection does not get automatically disconnected.
Moreover, such connections are always direct connections, which may cause issues in multithreaded scenarios (for instance, if the signal is emitted from another thread).
Synonym for QList<QObject *>.
|
friend |
|
protected |
|
readwrite |
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().
By default, this property contains an empty string.