Код:#include #define LOG_VIEW_TEXTEDIT_CLEAR 1001class CLogViewEvent : public QEvent{ public: CLogViewEvent( Type type):QEvent(type){};};void main(){CLogViewEvent tut(QEvent::ActionRemoved ); // goodCLogViewEvent hh(LOG_VIEW_TEXTEDIT_CLEAR); //error cannot convert parameter 1 from int to //QEvent::Type }как избавится от ошибки?
|