All Questions
440
questions
-1
votes
0
answers
53
views
Data sent from CPP causes interface crash in QML
first of all, I have a problem like this. I want to transfer the data to the QML side with a signal from C ++, but after a while my interface crashes without giving any error. I can't find the reason ...
0
votes
0
answers
144
views
Qt 5.15 QML MediaPlayer Segmentation Fault on i.MX6ULL
I am trying to embed video in a Qt 5.15 QML (Qt Quick) project running on an i.MX6ULL embedded processor (no GPU), however any inclusion of the Video (or MediaPlayer) components immediately results in ...
1
vote
0
answers
211
views
How to change qml's SystemPalette globally in linux
I'm using systemPalette (Qt5.15) in several qml-based applications in Linux, I need one of these applications to change systemPalette of qml system-wide (globally) so that other applications can ...
0
votes
1
answer
505
views
QML TapHandler on top of child elements (ListView)
ListView steals taps from TapHandler regardless of declaration order. That is, the Rectangle, which is declared first, responds to a click, but not the ListView, which also lies below the TapHandler.
...
0
votes
0
answers
259
views
Qml combobox turnoff autocomplete
I use property editable for allowing input text in combobox, and use method onEditTextChanged for request input value to DB, response from DB show in model. Its work, but autocomplete set in editText ...
1
vote
1
answer
73
views
QtQuick 2.0 get cap height of font
In QML (QtQuick 2.0), FontMetrics provides every info about a font's size except its cap height. I really need to find out the cap height of a font for a program (it even provides xHeight but not the ...
0
votes
0
answers
121
views
Accessing KeyNaviagtion from a property alias
Is it possible to use a property alias and gain access to KeyNaviagtion, assign an object to it, such that I can navigate between the buttons: cornerButton, messageButton and callButton? The ...
0
votes
1
answer
166
views
How do I add an alarm sound(Audio)?
I am writing an alarm clock in QML, I need to add an alarm sound when the alarm date and time reaches the system (in general, the alarm sound is triggered during normal operation of the alarm). How do ...
1
vote
2
answers
2k
views
Detect changes on every character typed in a TextField QML
I want to detect whenever the value in a TextField is altered.
All I see is the editingFinished() and textEdited() signals which
emits only when the space character,backspace or enter key is pressed.
...
4
votes
1
answer
964
views
QML: prevent ListView from returning at beginning on model change
When I try to display data through a ListView, everytime the model is updated the view returns to the beginning.
Is there a way to make ListView handle the model updates without changing the ...
1
vote
0
answers
116
views
How to manage activeFocus with QtQuick TableView (Qt5)
I want to navigate in a TableView (1 column, n rows) using key pressed events (next cell, previous cell, 10 cells before, 10 cells after, etc...). I tried to use an ItemSelectionModel (as per the ...
-1
votes
1
answer
513
views
How to create a QML component from C++ with component scope instance hierarchy
I have a test QML file like this:
// TestMain.qml
import QtQuick 2.15
import QtQuick.Controls 2.15
ApplicationWindow {
id: root
width: G_WIDTH
height: G_HEIGHT
readonly property ...
2
votes
1
answer
778
views
How to import JS module (.mjs) to QML
I followed the example provided in the docs:
// main.qml
import QtQuick 2.0
import "script.mjs" as MyScript
Item {
width: 100; height: 100
MouseArea {
anchors.fill: parent
...
0
votes
1
answer
644
views
QML BusyIndicator how to overlay the current window, like ProgressDialog in Android
Iam using QML Busyindicator when a user login or loading a data in a page or something like this, I want to be able to make the busyindicator overlay over the current window and make the window not ...
0
votes
0
answers
161
views
MouseMoveEvent stops being called
I'm using QCustomPlot (plot_ object) on QQuickPaintedItem (SinePlot class) so I can use it in QML. In mousePressEvent I collect initial point and in mouseMoveEvent I'm making calculations to add new ...