QObject::connect: No such slot MyWidget::onClicked() / No such signal
Qt's string-based connect could not find the signal or slot at run time.
QObject::connect: No such slotQObject::connect: No such signalconnect No such slot Qt Meaning
With the old SIGNAL()/SLOT() macros the check happens at run time, and a mismatch prints a warning only. Misspelled names, wrong argument types or a missing slots/Q_OBJECT give the message.
Common causes
- Slot or signal name or parameter types misspelled
- Class lacks
Q_OBJECT - Method not declared in a
slots:section (Qt 4 style) - Connecting before the object exists
⚡ Quick fix
- Use the function-pointer syntax:
connect(btn, &QPushButton::clicked, this, &MyWidget::onClicked) - Add
Q_OBJECTand rebuild - Check parameter types exactly
Detailed fix by platform
C++
connect(sender, &Sender::valueChanged, receiver, &Receiver::setValue);— mismatches become compile errors
How to diagnose
- Syntax — String or pointer?
- Q_OBJECT — Present?
- Types — Parameter types match?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Bus error C/C++: Bus error (core dumped) — SIGBUS from misaligned access or a bad memory-mapped file
- Could not load the Qt platform plugin xcb qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found
- Floating point exception C/C++: Floating point exception (core dumped) — SIGFPE, usually integer division by zero
Most viewed in C/C++
- AddressSanitizer: heap-buffer-overflow C/C++: ==ERROR: AddressSanitizer: heap-buffer-overflow on address — READ/WRITE of size N
- AddressSanitizer: heap-use-after-free C/C++: ==ERROR: AddressSanitizer: heap-use-after-free on address — memory used after delete/free
- was not declared in this scope C++: error: 'x' was not declared in this scope (undeclared identifier)
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 2 Dec 2026