API Documentation

Documentation for developing SailfishOS applications

TouchBlocker QML Type

An item that accepts all mouse and touch input More...

Import Statement: import Sailfish.Silica 1.0

Detailed Description

The TouchBlocker type is a simple Item that accepts all mouse and touch events delivered to it. It can be used to block all touch events from reaching any items below.

Below is a listview with a TouchBlocker above it. The user will not be able to interact with the covered list view.

 import QtQuick 2.2
 import Sailfish.Silica 1.0

 Page {
     SilicaListView {
         id: listView
         anchors.fill: parent
     }
     TouchBlocker {
         anchors.fill: listView
     }
 }

We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.