Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Facing issue in disabling up and down arrow buttons on user selecting 2 values, please hlep me to fix this.
Forum Updated to NodeBB v4.3 + New Features

Facing issue in disabling up and down arrow buttons on user selecting 2 values, please hlep me to fix this.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 3 Posters 764 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArpithaA Offline
    ArpithaA Offline
    Arpitha
    wrote on last edited by Arpitha
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • ArpithaA Offline
      ArpithaA Offline
      Arpitha
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • ArpithaA Offline
        ArpithaA Offline
        Arpitha
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          Can you try
          property bool isRestricted: false #or true (depends on your initial setting)

          since it is updated in Connections. Your current code looks like duplicate updates.

          1 Reply Last reply
          0
          • ArpithaA Offline
            ArpithaA Offline
            Arpitha
            wrote on last edited by
            #5

            yes its for my testing purpose I have added that variable in Connections, so yes it will duplicate the values, i removed it and I will try and update here.
            Thanks for response.

            B 1 Reply Last reply
            0
            • ArpithaA Offline
              ArpithaA Offline
              Arpitha
              wrote on last edited by
              #6

              do you know will my code works for my use case , please help if you have any other solution

              1 Reply Last reply
              0
              • ArpithaA Offline
                ArpithaA Offline
                Arpitha
                wrote on last edited by
                #7

                hello anybody there ?

                1 Reply Last reply
                0
                • ArpithaA Arpitha

                  yes its for my testing purpose I have added that variable in Connections, so yes it will duplicate the values, i removed it and I will try and update here.
                  Thanks for response.

                  B Offline
                  B Offline
                  Bob64
                  wrote on last edited by
                  #8

                  @Arpitha did you remove the explicit setting of isRestricted in onNavigationRestrictionChanged? That looks unnecessary. You said that you would try this and report back here.

                  1 Reply Last reply
                  0
                  • ArpithaA Offline
                    ArpithaA Offline
                    Arpitha
                    wrote on last edited by
                    #9

                    Hi @Bob64
                    yes that is for testing purpose, i removed and tried, im getting undefined for
                    console.info(" ARPITHA " +(flightsDataManager.selectedEffModel.getNavigationRestricted))

                    i have renamed QPROPERTY getter method from isNavigationRestricted to getNavigationRestricted

                    please suggest me why im getting undefined, what's the solution.
                    It will help me a lot.

                    JoeCFDJ 1 Reply Last reply
                    0
                    • ArpithaA Arpitha

                      Hi @Bob64
                      yes that is for testing purpose, i removed and tried, im getting undefined for
                      console.info(" ARPITHA " +(flightsDataManager.selectedEffModel.getNavigationRestricted))

                      i have renamed QPROPERTY getter method from isNavigationRestricted to getNavigationRestricted

                      please suggest me why im getting undefined, what's the solution.
                      It will help me a lot.

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by
                      #10

                      @Arpitha said in Facing issue in disabling up and down arrow buttons on user selecting 2 values, please hlep me to fix this.:

                      console.info(" ARPITHA " +(flightsDataManager.selectedEffModel.getNavigationRestricted))

                      if NavigatioRestricted is defined inside selectedEffModel, the access is like the following
                      console.info(" ARPITHA " + flightsDataManager.selectedEffModel. NavigatioRestricted ) //not sure how NavigatioRestricted is defined.
                      and func getNavigationRestricted call is not needed.
                      You need to show some code here and read some basic doc about binding of qml and c++ class.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved