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

Warning when long connect() parameters are continued on next line

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.14.2
    • Editors
    • None

    Description

      connect(myProcess, &QProcess::readyReadStandardOutput,

          [=]()

      { ui->plainTextEdit->appendPlainText(myProcess->readAllStandardOutput()); }

      );

      Warning: "Pass a context argument as the 3rd connect parameter."

      If the connect statement ends in a comma, go look for the other parameters on the next line, at least that is how I would design the code which triggered warning.

      Attachments

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

        Activity

          People

            davschul David Schulz
            psnarf Henry Pfeil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes