Module qtjambi
Package io.qt.core

Class QObject

All Implemented Interfaces:
QtObjectInterface, QtSignalBlockerInterface, QtSignalEmitterInterface, QtThreadAffineInterface
Direct Known Subclasses:
Q3DObject, Q3DScene, Q3DTheme, QAbstract3DAxis, QAbstract3DInputHandler, QAbstract3DSeries, QAbstractAnimation, QAbstractAnimation, QAbstractAspect, QAbstractAxis, QAbstractDataProxy, QAbstractEventDispatcher, QAbstractItemDelegate, QAbstractItemModel, QAbstractItemModelTester, QAbstractNetworkCache, QAbstractOAuth, QAbstractOAuthReplyHandler, QAbstractSeries, QAbstractState, QAbstractTextDocumentLayout, QAbstractTransition, QAccessibleBridgePlugin, QAccessiblePlugin, QAction, QActionGroup, QAnimationController, QAnimationDriver, QAnimationGroup, QAspectEngine, QBarModelMapper, QBarSet, QBoxPlotModelMapper, QBoxSet, QButtonGroup, QCandlestickModelMapper, QCandlestickSet, QClipboard, QCompleter, QCoreApplication, QCustom3DItem, QDataWidgetMapper, QDBusAbstractAdaptor, QDBusAbstractInterfaceBase, QDBusPendingCallWatcher, QDBusServer, QDBusServiceWatcher, QDBusVirtualObject, QDesignerFormEditorInterface, QDesignerFormWindowToolInterface, QDesignerIntegrationInterface, QDesignerMetaDataBaseInterface, QDesignerWidgetDataBaseInterface, QDesignerWidgetFactoryInterface, QDnsLookup, QDrag, QDtls, QDtlsClientVerifier, QEventLoop, QExtensionManager, QFactoryLoader, QFileSelector, QFileSystemWatcher, QFutureWatcherBase, QGenericPlugin, QGesture, QGraphicsAnchor, QGraphicsApiFilter, QGraphicsEffect, QGraphicsItemAnimation, QGraphicsObject, QGraphicsScene, QGraphicsTransform, QHelpEngineCore, QHelpFilterEngine, QHelpSearchEngine, QHttpMultiPart, QIconEnginePlugin, QImageIOPlugin, QInputDevice, QInputMethod, QIODevice, QItemSelectionModel, QJSEngine, QLayout, QLegendMarker, QLibrary, QLocalServer, QMimeData, QMorphTarget, QMovie, QNetworkAccessManager, QNetworkCookieJar, QNetworkInformation, QNode, QObjectCleanupHandler, QOffscreenSurface, QOpenGLContext, QOpenGLContextGroup, QOpenGLDebugLogger, QOpenGLShader, QOpenGLShaderProgram, QOpenGLVertexArrayObject, QPdfWriter, QPickEvent, QPieModelMapper, QPieSlice, QPluginLoader, QQmlAspectEngine, QQmlComponent, QQmlContext, QQmlEngineExtensionPlugin, QQmlExpression, QQmlExtensionPlugin, QQmlFileSelector, QQmlImageProviderBase, QQmlPropertyMap, QQuick3DObject, QQuickImageResponse, QQuickItem, QQuickItemGrabResult, QQuickRenderControl, QQuickTextDocument, QQuickTextureFactory, QQuickTransform, QRenderCapabilities, QRenderCaptureReply, QScreen, QScroller, QScxmlDataModel, QScxmlInvokableService, QScxmlInvokableServiceFactory, QScxmlStateMachine, QSessionManager, QSettings, QSGTexture, QSGTextureProvider, QSharedMemory, QShortcut, QSignalMapper, QSignalSpy, QSocketNotifier, QSqlDriver, QSqlDriverPlugin, QStencilOperationArguments, QStencilTestArguments, QStyle, QStyleHints, QStylePlugin, QSvgRenderer, QSyntaxHighlighter, QSystemTrayIcon, QTcpServer, QTestEventLoop, QTextDocument, QTextObject, QTextureWrapMode, QThread, QThreadPool, QTimeLine, QTimer, QTranslator, QUiLoader, QUndoGroup, QUndoStack, QValidator, QValue3DAxisFormatter, QVirtualKeyboardAbstractInputMethod, QVirtualKeyboardDictionary, QVirtualKeyboardDictionaryManager, QVirtualKeyboardExtensionPlugin, QVirtualKeyboardInputContext, QVirtualKeyboardInputEngine, QVirtualKeyboardObserver, QVirtualKeyboardTrace, QWidget, QWindow, QXYModelMapper

public class QObject
extends QtObject
implements QtSignalEmitterInterface, QtSignalBlockerInterface, QtThreadAffineInterface

The base class of all Qt objects

Java wrapper for Qt class QObject

  • Field Details

  • Constructor Details

  • Method Details

    • blockSignals

      @QtUninvokable public final boolean blockSignals​(boolean b)
    • children

      @QtUninvokable public final QList<QObject> children()
    • disposeLater

      public final void disposeLater()
    • dumpObjectInfo

      @QtUninvokable public final void dumpObjectInfo()
    • dumpObjectTree

      @QtUninvokable public final void dumpObjectTree()
    • dynamicPropertyNames

      @QtUninvokable public final QList<QByteArray> dynamicPropertyNames()
    • inherits

      @QtUninvokable public final boolean inherits​(String classname)
    • installEventFilter

      @QtUninvokable public final void installEventFilter​(QObject filterObj)
    • isSignalConnected

      @QtUninvokable protected final boolean isSignalConnected​(QMetaMethod signal)
    • isWidgetType

      @QtUninvokable public final boolean isWidgetType()
    • isWindowType

      @QtUninvokable public final boolean isWindowType()
    • killTimer

      @QtUninvokable public final void killTimer​(int id)
    • moveToThread

      @QtUninvokable public final void moveToThread​(QThread thread)
    • objectName

      @QtUninvokable public final String objectName()
    • parent

      @QtUninvokable public final QObject parent()
    • property

      @QtUninvokable public final Object property​(String name)
    • receivers

      @QtUninvokable protected final int receivers​(String signal)
    • removeEventFilter

      @QtUninvokable public final void removeEventFilter​(QObject obj)
    • sender

      @QtUninvokable protected final QObject sender()
    • senderSignalIndex

      @QtUninvokable protected final int senderSignalIndex()
    • setObjectName

      @QtUninvokable public final void setObjectName​(String name)
    • setParent

      @QtUninvokable public final void setParent​(QObject parent)
    • setProperty

      @QtUninvokable public final boolean setProperty​(String name, Object value)
    • signalsBlocked

      @QtUninvokable public final boolean signalsBlocked()
      Specified by:
      signalsBlocked in interface QtSignalBlockerInterface
    • startTimer

      @QtUninvokable public final int startTimer​(int interval)

      Overloaded function for startTimer(int, io.qt.core.Qt.TimerType) with timerType = io.qt.core.Qt.TimerType.CoarseTimer.

    • startTimer

      @QtUninvokable public final int startTimer​(int interval, Qt.TimerType timerType)
    • thread

      @QtUninvokable public final QThread thread()
      Specified by:
      thread in interface QtThreadAffineInterface
    • childEvent

      @QtUninvokable protected void childEvent​(QChildEvent event)
    • connectNotify

      @QtUninvokable protected void connectNotify​(QMetaMethod signal)
    • customEvent

      @QtUninvokable protected void customEvent​(QEvent event)
    • disconnectNotify

      @QtUninvokable protected void disconnectNotify​(QMetaMethod signal)
    • event

      @QtUninvokable public boolean event​(QEvent event)
    • eventFilter

      @QtUninvokable public boolean eventFilter​(QObject watched, QEvent event)
    • timerEvent

      @QtUninvokable protected void timerEvent​(QTimerEvent event)
    • tr

      public static String tr​(String source)
      Returns a translated version of source, or source itself if there is no appropriate translated version. Note that if you need to translate in a static context, you can use QCoreApplication::translate(), which is a static method.
      Parameters:
      source - the source text to translate.
      Returns:
      translated version of the source text.
    • tr

      public static String tr​(String source, String comment)
      Returns a translated version of source, or source itself if there is no appropriate translated version. The comment is used to help translators translate the source text. Note that if you need to translate in a static context, you can use QCoreApplication::translate(), which is a static method.
      Parameters:
      source - the source text to translate.
      comment - helps the translator translate the source text.
      Returns:
      translated version of the source text.
    • tr

      public static String tr​(String source, String comment, int count)
      Returns a translated version of source, or source itself if there is no appropriate translated version. If %n occurs in the source text, it will be substituted with count. The comment is used to help translators translate the source text. Note that if you need to translate in a static context, you can use QCoreApplication::translate(), which is a static method.
      Parameters:
      source - the source text to translate.
      comment - helps the translator translate the source text.
      count - in source %n will be substituted by count.
      Returns:
      translated version of the source text.
    • findChild

      @QtUninvokable public final QObject findChild()

      Overloaded function for findChild(Class) with cl = QObject.class.

      Returns:
      found child
    • findChild

      @QtUninvokable public final <T extends QObject> T findChild​(Class<T> cl)

      Overloaded function for findChild(Class,String,Qt.FindChildOptions)

      with:

      • name = null
      • options = FindChildrenRecursively
      Type Parameters:
      T - type of child
      Parameters:
      cl - type of child
      Returns:
      found child
    • findChild

      @QtUninvokable public final <T extends QObject> T findChild​(Class<T> cl, String name)

      Overloaded function for findChild(Class,String,Qt.FindChildOptions) with: options = FindChildrenRecursively.

      Type Parameters:
      T - type of child
      Parameters:
      cl - type of child
      name - name of child
      Returns:
      found child
    • findChild

      @QtUninvokable public final <T extends QObject> T findChild​(Class<T> cl, String name, Qt.FindChildOption... options)
      Type Parameters:
      T - type of child
      Parameters:
      cl - type of child
      name - name of child
      options - search options
      Returns:
      found child
    • findChild

      @QtUninvokable public final <T extends QObject> T findChild​(Class<T> cl, String name, Qt.FindChildOptions options)

      Returns the child of this object that instane of cl and that is called name, or null if there is no such object. Omitting the name argument causes all object names to be matched. 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 direct ancestors, it is undefined which one will be returned. In that case, findChildren() should be used.

      This example returns a child QPushButton of parentWidget named "button1", even if the button isn't a direct child of the parent:

      QPushButton button = parentWidget.findChild(QPushButton.class, "button1");

      This example returns a QListWidget child of parentWidget:

      QListWidget list = parentWidget.findChild(QListWidget.class);

      This example returns a child QPushButton of parentWidget (its direct parent) named "button1":

      QPushButton button = parentWidget.findChild(QPushButton.class, "button1", Qt.FindChildOption.FindDirectChildrenOnly);

      This example returns a QListWidget child of parentWidget, its direct parent:

      QListWidget list = parentWidget.findChild(QListWidget.class, null, Qt.FindChildOption.FindDirectChildrenOnly);

      Type Parameters:
      T - type of child
      Parameters:
      cl - type of child
      name - name of child
      options - search options
      Returns:
      found child
      See Also:
      findChildren()
    • findChildren

      @QtUninvokable public final QList<QObject> findChildren()

      Overloaded function for findChildren(Class) with cl = QObject.class.

      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl)

      Overloaded function for findChildren(Class,String,Qt.FindChildOptions)

      with:

      • name = null
      • options = FindChildrenRecursively
      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, String name)

      Overloaded function for findChildren(Class,String,Qt.FindChildOptions) with: options = FindChildrenRecursively.

      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      name - name of children
      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, String name, Qt.FindChildOption... options)
      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      name - name of children
      options - search options
      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, String name, Qt.FindChildOptions options)

      Returns all children of this object with the given name that are instance of cl, or an empty list if there are no such objects. Omitting the name argument causes all object names to be matched. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.

      The following example shows how to find a list of child QWidgets of the specified parentWidget named widgetname:

      List<QWidget> widgets = parentWidget.findChildren(QWidget.class, "widgetname");

      This example returns all QPushButtons that are children of parentWidget:

      List<QPushButton> allPButtons = parentWidget.findChildren(QPushButton.class);

      This example returns all QPushButtons that are immediate children of parentWidget:

      List<QPushButton> childButtons = parentWidget.findChildren(QPushButton.class, null, Qt.FindChildOption.FindDirectChildrenOnly);

      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      name - name of children
      options - search options
      Returns:
      found children
      See Also:
      findChild()
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, QRegularExpression re)

      Overloaded function for findChildren(Class,QRegularExpression,Qt.FindChildOptions) with: options = FindChildrenRecursively.

      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      re - regular expression
      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, QRegularExpression re, Qt.FindChildOption... options)
      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      re - regular expression
      options - search options
      Returns:
      found children
    • findChildren

      @QtUninvokable public final <T extends QObject> QList<T> findChildren​(Class<T> cl, QRegularExpression re, Qt.FindChildOptions options)

      This function overloads findChildren().

      Returns the children of this object that are instance of cl and that have names matching the regular expression re, or an empty list if there are no such objects. The search is performed recursively, unless options specifies the option FindDirectChildrenOnly.

      Type Parameters:
      T - type of children
      Parameters:
      cl - type of children
      re - regular expression
      options - search options
      Returns:
      found children
      See Also:
      findChildren()
    • emit

      protected static void emit​(QObject.PrivateSignal0 signal) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Parameters:
      signal - the signal to be emitted
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A> void emit​(QObject.PrivateSignal1<A> signal, A arg1) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B> void emit​(QObject.PrivateSignal2<A,​B> signal, A arg1, B arg2) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C> void emit​(QObject.PrivateSignal3<A,​B,​C> signal, A arg1, B arg2, C arg3) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D> void emit​(QObject.PrivateSignal4<A,​B,​C,​D> signal, A arg1, B arg2, C arg3, D arg4) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D,​ E> void emit​(QObject.PrivateSignal5<A,​B,​C,​D,​E> signal, A arg1, B arg2, C arg3, D arg4, E arg5) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      arg5 - The argument for the fifth parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D,​ E,​ F> void emit​(QObject.PrivateSignal6<A,​B,​C,​D,​E,​F> signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      arg5 - The argument for the fifth parameter of the signal.
      arg6 - The argument for the sixth parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D,​ E,​ F,​ G> void emit​(QObject.PrivateSignal7<A,​B,​C,​D,​E,​F,​G> signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      arg5 - The argument for the fifth parameter of the signal.
      arg6 - The argument for the sixth parameter of the signal.
      arg7 - The argument for the seventh parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H> void emit​(QObject.PrivateSignal8<A,​B,​C,​D,​E,​F,​G,​H> signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      arg5 - The argument for the fifth parameter of the signal.
      arg6 - The argument for the sixth parameter of the signal.
      arg7 - The argument for the seventh parameter of the signal.
      arg8 - The argument for the eighth parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • emit

      protected static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H,​ I> void emit​(QObject.PrivateSignal9<A,​B,​C,​D,​E,​F,​G,​H,​I> signal, A arg1, B arg2, C arg3, D arg4, E arg5, F arg6, G arg7, H arg8, I arg9) throws QSignalAccessException
      Emits a private signal. This method may only be called from inside the signal owning object.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      I - The type of the ninth parameter of the signal.
      Parameters:
      signal - the signal to be emitted
      arg1 - The argument for the first parameter of the signal.
      arg2 - The argument for the second parameter of the signal.
      arg3 - The argument for the third parameter of the signal.
      arg4 - The argument for the fourth parameter of the signal.
      arg5 - The argument for the fifth parameter of the signal.
      arg6 - The argument for the sixth parameter of the signal.
      arg7 - The argument for the seventh parameter of the signal.
      arg8 - The argument for the eighth parameter of the signal.
      arg9 - The argument for the ninth parameter of the signal.
      Throws:
      QSignalAccessException - if signal is emitted from outside the declaring class.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal1<?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal1<A> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal2<?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal2<A,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal2<A,​B> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal3<?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal3<A,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal3<A,​B,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal3<A,​B,​C> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal4<?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal4<A,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal4<A,​B,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal4<A,​B,​C,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal4<A,​B,​C,​D> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<A,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<A,​B,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​D,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​D,​E> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​B,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​E,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​E,​F> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​F,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​F,​G> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​?,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​?,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​?,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​?,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​G,​?> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​G,​H> signal, QMetaObject.Slot8<A,​B,​C,​D,​E,​F,​G,​H> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<?,​?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​?,​?,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​?,​?,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​?,​?,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​?,​?> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​H,​?> signal, QMetaObject.Slot8<A,​B,​C,​D,​E,​F,​G,​H> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • connect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H,​ I> QMetaObject.Connection connect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​H,​I> signal, QMetaObject.Slot9<A,​B,​C,​D,​E,​F,​G,​H,​I> slot, Qt.ConnectionType... connectionType)
      Initializes a connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      I - The type of the ninth parameter of the signal.
      Parameters:
      signal - the signal to be connected
      slot - the slot to be connected
      connectionType - type of connection
      Returns:
      connection if successful or null otherwise
      Throws:
      QMisfittingSignatureException - Raised if their signatures are incompatible.
      QUninvokableSlotException - Raised if slot is annotated @QtUninvokable.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal0 signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal1<?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal1<A> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal2<?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal2<A,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal2<A,​B> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal3<?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal3<A,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal3<A,​B,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal3<A,​B,​C> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal4<?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal4<A,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal4<A,​B,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal4<A,​B,​C,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal4<A,​B,​C,​D> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal5<?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal5<A,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal5<A,​B,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​D,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E> boolean disconnect​(QMetaObject.AbstractPrivateSignal5<A,​B,​C,​D,​E> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal6<?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​B,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​E,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F> boolean disconnect​(QMetaObject.AbstractPrivateSignal6<A,​B,​C,​D,​E,​F> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal7<?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​F,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> boolean disconnect​(QMetaObject.AbstractPrivateSignal7<A,​B,​C,​D,​E,​F,​G> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal8<?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​?,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​?,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​?,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​?,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​G,​?> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H> boolean disconnect​(QMetaObject.AbstractPrivateSignal8<A,​B,​C,​D,​E,​F,​G,​H> signal, QMetaObject.Slot8<A,​B,​C,​D,​E,​F,​G,​H> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QMetaObject.AbstractPrivateSignal9<?,​?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot0 slot)
      Removes the connection between the given signal and slot.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​?,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot1<A> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​?,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot2<A,​B> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​?,​?,​?,​?,​?,​?> signal, QMetaObject.Slot3<A,​B,​C> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​?,​?,​?,​?,​?> signal, QMetaObject.Slot4<A,​B,​C,​D> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​?,​?,​?,​?> signal, QMetaObject.Slot5<A,​B,​C,​D,​E> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​?,​?,​?> signal, QMetaObject.Slot6<A,​B,​C,​D,​E,​F> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​?,​?> signal, QMetaObject.Slot7<A,​B,​C,​D,​E,​F,​G> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​H,​?> signal, QMetaObject.Slot8<A,​B,​C,​D,​E,​F,​G,​H> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static <A,​ B,​ C,​ D,​ E,​ F,​ G,​ H,​ I> boolean disconnect​(QMetaObject.AbstractPrivateSignal9<A,​B,​C,​D,​E,​F,​G,​H,​I> signal, QMetaObject.Slot9<A,​B,​C,​D,​E,​F,​G,​H,​I> slot)
      Removes the connection between the given signal and slot.
      Type Parameters:
      A - The type of the first parameter of the signal.
      B - The type of the second parameter of the signal.
      C - The type of the third parameter of the signal.
      D - The type of the fourth parameter of the signal.
      E - The type of the fifth parameter of the signal.
      F - The type of the sixth parameter of the signal.
      G - The type of the seventh parameter of the signal.
      H - The type of the eighth parameter of the signal.
      I - The type of the ninth parameter of the signal.
      Parameters:
      signal - the signal to be disconnected
      slot - the slot to be disconnected
      Returns:
      true if successfully disconnected, or false otherwise.
    • connect

      public static QMetaObject.Connection connect​(QObject sender, String signal, QObject receiver, String slot, Qt.ConnectionType... connectionType)

      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.

      QLabel label = new QLabel();
      QScrollBar scrollBar = new QScrollBar();
      QObject.connect(scrollBar, "valueChanged(int)", label, "setNum(int)");

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

      QObject.connect(scrollBar, "valueChanged(int value)", label, "setNum(int value)");

      A signal can also be connected to another signal:

      public class MyWidget extends QWidget {
          public final Signal0 buttonClicked = new Signal0();

          public MyWidget(){
              myButton = new QPushButton(this);
              connect(myButton, "clicked()", this, "buttonClicked()");
          }

          private QPushButton myButton;
      }

      or alternatively:

      clicked.connect(myButton.buttonClicked);

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

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

      If a signal is connected to several slots, the slots are activated in the same order in which the connections were made, when the signal is emitted.

      In case the connection was successfully initialized the function returns a QMetaObject.Connection that represents a handle to this connection. 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. In this case, the function returns null.

      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.ConnectionType.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 null.

      Note: Qt.ConnectionType.UniqueConnections do not work for lambdas; they only apply to connecting to member functions.

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

      QObject::connect: Cannot queue arguments of type 'MyType' (Make sure 'MyType' is registered using qRegisterMetaType().)

      call QMetaType#registerMetaType(Class) to register the data type before you establish the connection.

      See Also:
      disconnect(), sender(), QMetaType#registerMetaType(Class)
    • connect

      public static QMetaObject.Connection connect​(QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod slot, Qt.ConnectionType... connectionType)

      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 a QMetaObject.Connection is returned.

      This function works in the same way as connect(QObject, String, QObject, String, io.qt.core.Qt.ConnectionType...) but it uses QMetaMethod to specify signal and method.

      See Also:
      connect(QObject, String, QObject, String, io.qt.core.Qt.ConnectionType...)
    • disconnect

      public static boolean disconnect​(QObject sender, String signal, QObject receiver, String slot)

      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.

      1. Disconnect everything connected to an object's signals:

        disconnect(myObject, null, null, null);

        equivalent to the non-static overloaded function

        myObject.disconnect();

      2. Disconnect everything connected to a specific signal:

        disconnect(myObject, "mySignal()", null, null);

        equivalent to the non-static overloaded function

        myObject.mySignal.disconnect();

      3. Disconnect a specific receiver:

        disconnect(myObject, null, myReceiver, null);

        equivalent to the non-static overloaded function

        myObject.disconnect(myReceiver);

      0 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 0. (You cannot disconnect signals from more than one object in a single call.)

      If signal is 0, it disconnects receiver and method from any signal. If not, only the specified signal is disconnected.

      If receiver is 0, it disconnects anything connected to signal. If not, QMetaObject.Slots in objects other than receiver are not disconnected.

      If method is 0, 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 0 if receiver is left out, so you cannot disconnect a specifically-named slot on all objects.

      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public static boolean disconnect​(QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod slot)

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

      This function provides the same possibilities like disconnect(QObject, String, QObject, String) 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:

      1. signal is not a member of sender class or one of its parent classes.
      2. method is not a member of receiver class or one of its parent classes.
      3. signal instance represents not a signal.

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

      Returns:
      true if successfully disconnected, or false otherwise.
      See Also:
      disconnect(QObject, String, QObject, String)
    • disconnect

      public static boolean disconnect​(QMetaObject.Connection connection)

      Disconnect a connection.

      If the connection is invalid or has already been disconnected, do nothing and return false.

      Parameters:
      connection - the connection
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public final boolean disconnect()
      Disconnect all connections originating in this object.
      Returns:
      true if successfully disconnected, or false otherwise.
    • disconnect

      public final boolean disconnect​(Object receiver)
      Disconnect all connections made from this signal emitter to a specific object.
      Parameters:
      receiver - The receiver to disconnect, or null to disconnect all receivers
      Returns:
      true if successfully disconnected, or false otherwise.
    • metaObject

      @QtUninvokable public final QMetaObject metaObject()
      Returns a pointer to the meta-object of this object.
      Returns:
      the object's meta-object
    • qt_metacast

      @QtUninvokable public final <T extends QtObjectInterface> T qt_metacast​(Class<T> targetType)
      Casts an object to the given targetType. Returns null if object is not instance of targetType.
      Type Parameters:
      T - type
      Parameters:
      targetType -
      Returns:
      the object as targetType or null
    • inherits

      @QtUninvokable public final boolean inherits​(Class<?> targetType)
      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.
      Parameters:
      targetType -
      Returns:
      true if object instance of targetType
    • receivers

      @QtUninvokable protected final int receivers​(QMetaObject.AbstractSignal signalObject)
      See Also:
      receivers(String)
    • toString

      public String toString()
      Overrides:
      toString in class Object