Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12953

Strange and fault behaviour when creating slots by the gui from custom signals.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.1.2
    • Widget Designer
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              woomla Wo Om Laq
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes