#include <QtGlobal>#ifdef Q_OS_WIN #ifdef LIB_BUILD #define LIB_EXPORT Q_DECL_EXPORT #else #define LIB_EXPORT Q_DECL_IMPORT #endif#endif#ifndef LIB_EXPORT #define LIB_EXPORT#endifclass LIB_EXPORT SomeDialog : public QDialog{ Q_OBJECTpublic: SomeDialog(const QString& text, QObject* parent = 0); virtual ~SomeDialog(); QString title() const;signals: void titleChanged(const QString& title);public slots: void setTitle(const QString& text);}
//...SomeDialog* dialog = new SomeDialog("мой диалог", this);//...