Questions tagged [mousearea]

28 questions
0
votes
1 answer

How to highlight image on mouse hoover QML

I'm new to QML and I am trying to highlight an image on mouse hoover. I have a row of movie images, like this: Here is my code for image number 4 (tarzan): Rectangle{ id:rect4 width: parent.width/5-row.spacing/5 height:parent.height …
irena
  • 31
  • 7
0
votes
1 answer

Prevent MouseArea from catching clicks within child rect

I have a fullscreen map, on which I added a mouse area: Map { id: map anchors.fill: parent plugin: osm zoomLevel: 16 minimumZoomLevel: 13 maximumZoomLevel: 20 gesture.enabled: true Rectangle { …
user826955
  • 3,137
  • 2
  • 30
  • 71
0
votes
1 answer

Make SplitView handle wider for mouse hover

From qml Customizing SplitView example we can see handle is Rectangle with implicitWidth 4 SplitView { id: splitView anchors.fill: parent handle: Rectangle { implicitWidth: 4 implicitHeight: 4 color:…
0
votes
1 answer

MouseArea calling a FileDialog : know which element opened the FileDialog (QML)

Since my last issue with my code, I've come across a new one. Unfortunately, it's not really an implementation issue but much more an "conceptual" issue. Well so let met introduce the case. I have a grid full of button and then to deal with their…
a-maxime
  • 35
  • 3
0
votes
0 answers

How to use MouseArea in ScrollView and Flow

I do want to use an MouseArea to show a clickable Button within a Flow with in a ScrollView. Reason for this structure is that the Objects are created dynamically from the user, so I want to place them in a Flow to ensure vertical placement and in a…
0
votes
1 answer

Qml Get the text of listElement using the mouseAera

I want to get the name of listElement (append dynamicaly with python) when I click for reuse this name with python function. How can I get this name ? In this example I can only get the index 0 element... QML part : Rectangle { id:…
0
votes
2 answers

Use MouseArea to change StackLayout Item

How can I use a MouseArea to change the item in a StackLayout? MouseArea { id: mouseAreaServerSetup anchors.fill: parent onClicked:{ // change Iten serverSetupPage } …
0
votes
1 answer

In QML, add pressAndHold to item that already handles press?

I'd like to add a pressAndHold handler to tabs created by a TabView. If I attach such a handler to the component that the TabView generates the tab from, then the tab no longer works, because the press doesn't get to the underlying tab. Setting…
Paul DeRocco
  • 403
  • 3
  • 15
0
votes
2 answers

QML Mousearea onReleased not emitted

I am trying to use Mousearea in my rectangle in QML. I am getting onPressed, OnCLicked, onDoubleClicked and onPositionChanged. But, QML does not receive onReleased event. Can you guys let me know, why its not working? My code below: Rectangle { …
Coder
  • 845
  • 1
  • 10
  • 20
0
votes
1 answer

Enabling FastScroll in QML

I am trying to enable the fastscroll in QML.. I have got some idea on how to accomplish that but need some help... As you can see from the code below, I am using 2 listviews :- one for displaying contacts and the other to display the indexes for…
sid
  • 31
  • 5
0
votes
1 answer

The QML MouseArea property doesn't handle the "target"

We have a project in which there are some components and one of them is named Racket.qml which is as below: import QtQuick 2.9 Rectangle { id: root width: 15; height: 65 property int oldY: y property bool yUwards: false property…
Franky
  • 1,181
  • 2
  • 11
  • 33
0
votes
0 answers

Qt/QML: MouseArea in Flickable does not signal released/clicked when tapped on Touch Screen after upgrade

After upgrade from Qt 5.4.1 to 5.9.1 the following code has changed behavior when using a touchscreen: import QtQuick 2.1 import QtQuick.Window 2.2 Window { visible: true width: flick.width + 2*grid.spacing height: flick.height +…
buggex
  • 9
  • 4
-2
votes
1 answer

"What time is it" by dragging the pointer

I'm trying to implement a small didactic program written in Qt, that uses QML as I'm learning in parallel. I'd like to know if it is possible to get the real time during the circular drag of the clock pointer. Would you recommend to start with that…
1
2