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. Deactivate click-ability on TextInput if something above. How?
QtWS25 Last Chance

Deactivate click-ability on TextInput if something above. How?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 217 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello all!

    I have and TextInput and I have loader sign with opacity 0.6 above this TextInput. I've got totally forgotten how to switch off click-ability on TextInput if something above it. Could someone to refresh it in my memory? And loader sign with "z" value.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote on last edited by bogong
      #2

      Solution found. Issue closed. Just need to add MouseArea that is filling loader sign and attach empty action to it.
      Something like this:

      MouseArea {
      	id: oMouseClicksLocker;
      	anchors.fill: parent;
      	onClicked: {}
      }
      
      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        You can try with enabled:false as well.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        B 1 Reply Last reply
        0
        • dheerendraD dheerendra

          You can try with enabled:false as well.

          B Offline
          B Offline
          bogong
          wrote on last edited by
          #4

          @dheerendra there might be different numbers and of areas that should be blocked. I've been developing universal background for loader sign (not QML component Loader). For me it simpler to use empty function because I don't care about number and types of mouse areas.

          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