Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
Qt Creator 3.1.2
-
None
-
Windows 8.1
Description
When creating a slot by the gui by selecting 'goto slot...', the created slots sometimes use a reference parameter and sometimes not.
For example
clicked(int)
creates
on_widget_clicked(int )
and
doubleClicked(Qt::MouseButton, int, int)
creates
on_widget_doubleClicked(const Qt::MouseButton &, const int &, const int &)
For some signals the created code is incorrect:
mouseWheel(Qt::KeyboardModifiers, int, const QPoint, bool)
creates
on_widget_mouseWheel(const Qt::KeyboardModifiers &, const int &, const const QPoint &, const bool &)
The '&' character is not allowed when adding a signal. So there is no way to force (or prevent) from creating a reference parameter.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-29257 Qt Widget Designer: 'Go to Slot' should generate Qt 5 connection syntax
- Reported