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

[REG 5.15 → 6] remove warning on signal connect with no arguments

    XMLWordPrintable

Details

    • b7d1fafe5 (dev), 0c53c4e3d (6.9), 5fdc9ac9c (6.8), e3d72a8fd (tqtc/lts-6.5)

    Description

      When following the docs here to connect signals together -

      https://doc.qt.io/qt-6/qtqml-syntax-signals.html#signal-to-signal-connect

      The following example produces an warning because of the missing arguments.

       

          
      signal dismiss()  
       
      onDismiss:console.log("dismissed signal")
      
      TapHandler {    
          id: tapHandlerIcon    
          }    
      Component.onCompleted: {        
          tapHandlerIcon.tapped.connect(dismiss) //connect custom signal    
          }

      results in

      / When matching arguments for Tag_QMLTYPE_70::dismiss():Too many arguments, ignoring 2
      qml: dismissed signal 

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            brook_cronin_qt Brook Cronin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes