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

Find usage does not find usage of signals and slots in other classes when using old-style connect syntax

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.3.0
    • C/C++/Obj-C++ Support
    • None
    • Qt Creator 3.3.0
      OS: Linux, Windows,...

      There is a problem with "find usage". It does not find usage of signals/slots in other classes and subprojects when you are using the old-style Qt signal slot syntax like :

      connect(object1, SIGNAL(someSignal()), object2, SLOT(someSlot());
      

      But if you use the new signal slot syntax which is available in Qt 5.* like :

      connect(object1, &MyClass1::someSignal, object2, &MyClass2::someSlot);
      

      "find usage" simply finds usage of the signal/slots in other classes even in other subprojects. So it does not work with the old-style syntax of connect when it is used in other classes.

      I have tested it with Qt Creator 3.3.0 both on Linux and Windows. I think it is worth to be fixed in a next release of Qt Creator. Because it seems that the old style syntax will be used for a long time by many projects and "find usage" is a frequently used utility specially for signals and slots.

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

            kandeler Christian Kandeler
            nejatafshar Nejat Afshar
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes