「Qtの基礎 - ライブラリ」の版間の差分

ナビゲーションに移動 検索に移動
249行目: 249行目:
  #include <QtCore/qglobal.h>
  #include <QtCore/qglobal.h>
   
   
  #ifdef Q_OS_WIN  // Windows
  #if defined(Q_OS_WIN)   // Windows
     #if defined(PLUGIN_LIBRARY)
     #if defined(PLUGIN_LIBRARY)
       #define PLUGIN_EXPORT __declspec(dllexport)
       #define PLUGIN_EXPORT __declspec(dllexport)
255行目: 255行目:
       #define PLUGIN_EXPORT
       #define PLUGIN_EXPORT
     #endif
     #endif
  #elif Q_OS_LINUX  // Linux
  #elif defined(Q_OS_LINUX) // Linux
     #if defined(PLUGIN_LIBRARY)
     #if defined(PLUGIN_LIBRARY)
       #define PLUGIN_EXPORT Q_DECL_EXPORT
       #define PLUGIN_EXPORT Q_DECL_EXPORT
370行目: 370行目:
  </syntaxhighlight>
  </syntaxhighlight>
<br>
<br>
==== バイナリ互換性を保つ方法 ====
==== バイナリ互換性を保つ方法 ====
バイナリ互換性を保つ方法として、Pimplイディオムを使用する。<br>
バイナリ互換性を保つ方法として、Pimplイディオムを使用する。<br>

案内メニュー