Obsolete Members for QAxFactory

QAxFactory クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

マクロ

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

マクロのドキュメント

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

このマクロは非推奨です。新しいコードでの使用は強くお勧めしません。

このマクロを使用すると、暗黙的に宣言された `QAxFactory ` 実装を介して、単一の `QObject ` サブクラス `Class ` をこの COM サーバーとしてエクスポートすることができます。

このマクロは、クラス `Class ` を、CLSID `ClassID` を持つ COM コクラスとしてエクスポートします。 プロパティとスロットは、IIDInterfaceID を持つ COM インターフェースを通じて宣言され、シグナルは IIDEventID を持つ COM イベントインターフェースを通じて宣言されます。すべての宣言は、IDLibID を持つタイプライブラリに含まれ、サーバーが実行可能サーバーである場合は、アプリケーション IDAppID を持ちます。

#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
)

注:このクラスは 、QAXFACTORY_BEGIN() に置き換えられるため、非推奨となっています。

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.