Questions tagged [QML] (116)

2
answers

Because may be error output Cyrillic Text qml?

There was an unusual problem, which during the day, I have not found. The problem occurs only on 1 PC with Windows 10. When you try to output the Russian text in a qml Text instead of Russian letters displayed characters, as I thought, of the Greek alphabet. The first conclusion that shot down the encoding, but the mechanis...
edgardo asked April 19th 20 at 12:02
0
answer

How to load text from file into TextArea with line wrapping?

import QtQuick 2.9 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 TextArea { id: editor text: "G0 Y0 X11" font.pixelSize: 10 textFormat: TextEdit.RichText selectByMouse: true function loadTextFile(fileUrl){ var xhr = new XMLHttpRequest; xhr.open("GET", fileUrl); xhr.onreadystatechange = function...
Delfina_Tillman74 asked April 18th 20 at 13:31
1
answer

How to customize the appearance of slider QML?

Lord, help me, have to do the first steps in Qt. The task is to change the style of slider. Does not compile, gives error import QtQuick 2.9 import QtQuick.Controls 2.2 import QtQuick.Controls.Styles 1.4 Slider { from: 1 value: 25 to: 100 orientation: Qt.Vertical anchors.centerIn: parent width: 100 stepSize: 5 st...
Teresa_Labadie30 asked April 16th 20 at 10:54
0
answer

Is it possible in QML to define inside a custom component, which any of its properties in the animation process?

Welcome! In short, let's say there is a component Mypcname.qml. Any (or many) of its properties will change often and a lot (if you change which can affect many things, for example - a gradual drop in height, and while he is revealed - there is a scrollbar, and when open fully - skrolbar hiding. So you need to disable a scr...
Concepcion asked April 16th 20 at 10:19
1
answer

How to skip clicking through Item in Qt?

Suppose that there are n clickable components. No, I guess n would be too small, take m clickable components and place them one after another, so much so that the smallest was at the back. With each of the components, bind the handler of depression. Now take and click on the small component. Now I would like to click pass...
Victor82 asked April 8th 20 at 10:32
0
answer

Is it possible to use a vector path as a mask for MouseArea in QT?

Hello, I want to create a clickable element based on the svg images, I want to make a custom vector, not a raster path that would designate the boundaries of the CTR. I found a similar theme and topic, but all is not what describes the case of a circular region and a case that uses a bitmap mask. Met anyone the same thing, ...
bennie.Botsford asked April 8th 20 at 10:30
0
answer

Why TextFild(qml), if mask is set, the cursor does not correctly change the position?

Qml TextField if inputMask -- the cursor (when entering text) is moved to one position , and needs depending on the mask. This problem is on Android. On a desktop with a physical keyboard behavior right import QtQuick 2.14 import QtQuick.2.14 Window import QtQuick.Controls 2.12 Window { visible: true width: 640 heigh...
Jarrell asked April 7th 20 at 11:19
0
answer

How to thin out label the axes of the chartview in qml?

If a window with the graph to shrink in size, the captions if they are not to be missed sights are clamped and converted into three dots (...) Who as with it struggled?
edmond asked April 7th 20 at 10:03
0
answer

How to set video in Qt?

I have a QML video player. Works well. Now I need to switch video tracks/streams. In Linux, this was solved by opening the video file using gst-pipeline with the appropriate parameters. On Win I can not understand how to do it. I use 5.12.6 / 5.14 Qt and gstreamer should be supported, but I have not figured out how. Can any...
tommie_Schmel asked April 4th 20 at 13:59
0
answer

In QML Repeater'have to say that you need to change only one line?

Good time of day. I have a list of item s that I converted into a model and send it to qml. Now I make repaint all elements of the list. Is it possible to change it in QML Repeater only one Item and not render the whole list again? beginResetModel(); this->m_list.append(item); endResetModel(); Thank you
Nettie81 asked April 2nd 20 at 16:28