[Qt-interest] QPushButton can not be connected

Justus Best just18 at gmx.de
Sat Jul 24 20:05:59 CEST 2010


  Hi
> I get the error:
> error: no matching function for call to
> 'DialogMicosController::connect(QPushButton*&, const char*)'
> note: candidates are: static bool QObject::connect(const QObject*, const
> char*, const QObject*, const char*, Qt::ConnectionType)
> note:                 bool QObject::connect(const QObject*, const char*,
> const char*, Qt::ConnectionType) const
 From my point of view it looks like this "QPushButton*&" is a little 
strange.
and in the connect
connect(ui->pushButtonClose, SIGNAL(clicked())), 
this, SLOT(OnPushButtonCloseClicked());
It seems that there is a brace to much after the clicked()))

Justus



More information about the Qt-interest-old mailing list