Obsolete Members for QAxFactory

I seguenti membri della classe ` QAxFactory ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.

Macro

(deprecated) QAXFACTORY_DEFAULT(Class, ClassID, InterfaceID, EventID, LibID, AppID)

Documentazione sulle macro

[deprecated] QAXFACTORY_DEFAULT(Class, ClassID, InterfaceID, EventID, LibID, AppID)

Questa macro è obsoleta. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

Questa macro può essere utilizzata per esportare una singola sottoclasse di QObject Class are un server COM tramite un'implementazione di QAxFactory dichiarata implicitamente.

Questa macro esporta la classe Class come coclasse COM con CLSID ClassID. Le proprietà e gli slot saranno dichiarati tramite un'interfaccia COM con l'IID InterfaceID, mentre i segnali saranno dichiarati tramite un'interfaccia di eventi COM con l'IID EventID. Tutte le dichiarazioni saranno contenute in una libreria di tipi con l'ID LibID e, se il server è un server eseguibile, avrà l'ID dell'applicazione AppID.

#include <qaxfactory.h>

#include "theactivex.h"

QAXFACTORY_DEFAULT(
    TheActiveX,                               // widget class
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // class ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // interface ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // event interface ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}"  // application ID
)

Nota: questa classe è stata deprecata a favore di QAXFACTORY_BEGIN().

Vedi anche QAXFACTORY_EXPORT().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.