Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15825

Random QObject connect() failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • 4.7.2
    • 4.7.0
    • Core: Object Model
    • None
    • Win7 32-bit
      VS2010
      Qt 4.7.0 VS2008 reconfigured for 2010
      AddIn 1.1.6

      I have a block with a number of consecutive connect calls and noticed that the last one was consistently failing.
      The last statement was connecting signal and slot with two parameters, like this (param types were not simple as in this example):
      connect(objA, SIGNAL(sig1(int, char)), objB, SLOT(slot1(int, char));

      When I stepped into Qt code I noticed that connection was failing because strings being compared were "slot1(int,char)" and "slot1(int, char)" – note the space between parameters. I had other connect statements with more than one parameter and spaces between them but only the last one was failing.

      It started working when I removed spaces from connect statement, like this:
      connect(objA, SIGNAL(sig1(int,char)), objB, SLOT(slot1(int,char));

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            harvey___ Galadrius Krunthar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes