[eaf] connect

  • From: "KELECSENYI Zoltan" <dolphinz@xxxxxxxxxxx>
  • To: eaf@xxxxxxxxxxxxx
  • Date: Mon, 23 Apr 2007 20:10:26 +0200

Sziasztok!

A Designerrel letettem egy QPushButton-t és ezután származtattam a Form1 
osztályt. osztáíy def. elejére odaírtam a Q_OBJECT- et.

egy slot-ot is készítettem, ami most csak kiír valamit a konsole-ra.

connect (((QPushButton*)pbutton_login), SIGNAL (clicked() ), this, SLOT 
(slotCheck() ) );

fordítás után ezt a hibát kapom:

mozilogin.h:20: error: no matching function for call to 
&#8216;MoziLogin::connect(QPushButton*, const char [11], MoziLogin* const, 
const 
char [13])&#8217;
/usr/qt/3/include/qobject.h:116: note: candidates are: static bool 
QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/qt/3/include/qobject.h:226: note:                 bool 
QObject::connect(const QObject*, const char*, const char*) const
make: *** [.obj/main.o] Error 1

Other related posts: