Qt "no matching function for call"

Posted by Blin on Stack Overflow See other posts from Stack Overflow or by Blin
Published on 2010-04-20T15:42:28Z Indexed on 2010/04/20 15:43 UTC
Read the original article Hit count: 178

Filed under:
|
|

I have

no matching function for call to 'saveLine::saveLine()'

error when compiling my application. The construcor is never actually called.

saveLine class definition:

class saveLine
{
public:
    saveLine(QWidget *parent);
private:
    QPushButton *selectButton, *acceptButton;
    QLabel *filePath;
    QLineEdit *allias;
};

saveLine is used in another class which is defined as follows:

class MWindow : public QWidget
{
    Q_OBJECT
public:
    MWindow(QWidget *parent=0);
private:
    saveLine line1;
};

error points to MWindow constructor implementation

MWindow::MWindow(QWidget *parent):QWidget(parent)
{
    this->setWindowTitle("Launcher");
    this->resize(600,600);
}

What should i do? I intend to use saveLine class in a vector, to create lines at runtime.

© Stack Overflow or respective owner

Related posts about qt

Related posts about c++