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

False positives for complex alias properties

    XMLWordPrintable

Details

    Description

      If I have something like this:

      Item {
          id: root
          width: 1024
          height: 768
          property alias cappuccinoLabel: cappuccinoLabel
          property alias brewButton: brewButton
          property alias backButton: backButton
          property alias sugarSlider: sugarSlider
          property alias milkSlider: milkSlider
          property alias coffeeLabel: cappuccinoLabel.text
          property real coffeeAmount: 5
      

      and in another component I do this:

      selection.brewButton.onClicked: {
              settings.milkSlider.value = selection.sideBar.currentMilk
              settings.cappuccinoLabel.text = selection.sideBar.currentCoffee
              settings.coffeeAmount = selection.sideBar.currentCoffeeAmount
              applicationFlow.state = "settings"
          }
      

      Then I get an error for brewButton while everything works fine in the real application.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-18362
        # Subject Branch Project Status CR V

        Activity

          People

            mabenell Marco Benelli
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes