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

Strange semantic issues showed up on QT Creator 4.7.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.7.0
    • C/C++/Obj-C++ Support
    • None
    • Windows7 64 bits
    • Windows

    Description

      After updating Qt Creator from 4.6.0 (built on mar 27 2018) to 4.7.0 (built on july 17 2018), several semantic issues showed up.

      For example, the code below will be fine.

      //main.cpp
      QObject::connect(&p1, SIGNAL(mysignal), &p2, SLOT(myslot)), Qt::QueuedConnection)
      
      // other file.hpp
      class p2: public QObject
      {
      Q_OBJECT public:
      /// Contructor explicit p2(QObject *parent = nullptr); /// Destructor virtual ~p2();
      ...
      }
      

       

      But, if I add a QQueue to p2, such as

       QQueue<Type not important here> my_queue;

       

      Then this error will appear at the connect line of the main.cpp.

       error: no matching for call to connect

       For the moment, I rolled back to QTCreator 4.6.0 and the issue is gone.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            vinc Vin B
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes