Solved - no matching function for call to 'MainWindow::connect(



  • Hello,

    I have one of those "no matching function for call to 'MainWindow::connect( ..." errors and I'm not seeing the problem. A code snippit shoing the connect function calls is below. If anyone can help, I'd appreciate it. What exactly is causing the error here?

    Thanks.

    @
    // QT MainWindow class
    class MainWindow : public QMainWindow
    {
    Q_OBJECT

    public:

    N8241A* n8241a;
    DINIBOARD* diniboard;
    ASIC* asic;
    
    Ui::MainWindow* accessgui() { return ui; }
    
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    

    private:
    void initialize()
    {
    n8241a = new N8241A(ui);
    diniboard = new DINIBOARD(ui);
    asic = new ASIC(ui, diniboard);

        // form signal-slot connections to GuI text edit box
        QObject::connect(n8241a, SIGNAL(appendPlainText ( const QString &)), ui->ASIC_TestStatusTextBox, SLOT(appendPlainText ( const QString &)));
        QObject::connect(diniboard, SIGNAL(appendPlainText ( const QString &)), ui->ASIC_TestStatusTextBox, SLOT(appendPlainText ( const QString &)));
        QObject::connect(asic, SIGNAL(appendPlainText( const QString &)), ui->ASIC_TestStatusTextBox, SLOT(appendPlainText ( const QString &)));
    
    }@
    

    [edit, code tags added, koahnig]



  • Nevermind. I failed to make QObject parent classes.


  • Moderators

    Glad you figured out your problem! Be sure and edit your initial post to add [Solved] to the title. Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.