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

error "ambiguous overload for 'operator=='" occurs in QT6 but not QT5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.6.3
    • Active Qt
    • None
    • Product: Qt Creator 13.0.2
      Based on: Qt 6.6.3 (MSVC 2019, x86_64)
      Built on: Jun 5 2024 07:17:53
      From revision: 1ad2c04e0e

    Description

      I am using QT 5.6.1 and 6.6.3 version, but this error only occurs in QT 6.6.3.

      E:\SUBJECT\CODE\Qt\netdisk\TcpClient\opefriend.cpp:109: error: ambiguous overload for 'operator==' (operand types are 'long long int' and 'QString')
      ..\..\opefriend.cpp: In member function 'void OpeFriend::addFriend(QString)':
      ..\..\opefriend.cpp:109:13: error: ambiguous overload for 'operator==' (operand types are 'long long int' and 'QString')
        109 |     if(NULL == reqName)
            |             ^

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            lone 11 111
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes