Qt - No matching signals for all controls



  • Hey! I hope you guys can help me figure this one out;

    Suddenly, when I start my application (it compiles no problem, no warnings, no errors) suddenly ALL controls give:

    QMetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_valueChanged(int)
    QMetaObject::connectSlotsByName: No matching signal for on_DeleteLayer_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_SizeInput_valueChanged(double)
    QMetaObject::connectSlotsByName: No matching signal for on_btnPixel_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TextOptionFont_currentIndexChanged(QString)
    QMetaObject::connectSlotsByName: No matching signal for on_plainTextEdit_textChanged()
    QMetaObject::connectSlotsByName: No matching signal for on_TextOptionBold_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TextOptionItalic_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TextOptionUnderline_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TextOptionColor_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabBorder_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabText_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabPosition_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabLayerOptions_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_spinBox_valueChanged(int)
    QMetaObject::connectSlotsByName: No matching signal for on_BorderColorBtn_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_sliderMoved(int)
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_valueChanged(int)
    QMetaObject::connectSlotsByName: No matching signal for on_RbLeftUpper_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbUpperCenter_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbRightUpper_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbLeftCenter_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbCenter_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbRightCenter_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbLeftBottom_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbLowerCenter_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_RbRightBottom_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_SizeInput_valueChanged(double)
    QMetaObject::connectSlotsByName: No matching signal for on_btnPixel_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_SizeInput_valueChanged(double)
    QMetaObject::connectSlotsByName: No matching signal for on_btnPixel_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_valueChanged(int)
    QMetaObject::connectSlotsByName: No matching signal for on_DeleteLayer_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_SizeInput_valueChanged(double)
    QMetaObject::connectSlotsByName: No matching signal for on_btnPixel_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_ToggleItem_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabDefault_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_TabLayerOptions_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_DeleteLayer_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_spinBox_valueChanged(int)
    QMetaObject::connectSlotsByName: No matching signal for on_BorderColorBtn_clicked()
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_sliderMoved(int)
    QMetaObject::connectSlotsByName: No matching signal for on_horizontalSlider_valueChanged(int)
    

    And I have made sure that all functions exists, and everything, and this has worked just fine before, I have no idea why suddenly all these warnings popup, and nothing works on the application, no signals get fired, nothing. What could be the cause?


  • Qt Champions 2016

    Hi
    You should check that the moc_xxx file is being created as it should.
    The warning is from the auto connection feature.

    so for
    MetaObject::connectSlotsByName: No matching signal for on_btnPercent_clicked()

    you should have ui->btnPercent and a slot called on_btnPercent_clicked()
    ( which sounds like you have)

    so try to clean the build folder. Simply delete whole build folder.
    Then run
    qmake
    and rebuild all.
    It sounds like it dont know clicked() but that makes no sense.



  • Hey!

    Thanks for your response,

    I did as you said, first of all I made sure all the ui objects actually are there under 'ui->' and they are, they all exists. The 'moc_xxx' also gets created, and I did a complete delete/qmake/rebuild, same issue. It fixed nothing unfortunately. I'm completely at loss here, is there any other causes that could make this happen?


  • Qt Champions 2016

    @Fadekraft
    hmm, that is indeed very strange.
    If you create new default Qt widget application and place a button
    and right click it+goto slot and connect to a released() slot.
    does this just works?


Log in to reply
 

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