Questions tagged [qqmlcomponent]

In the Qt framework, the QQmlComponent class encapsulates a QML (Qt Modeling Language) component definition.

In the Qt framework, the QQmlComponent class encapsulates a QML (Qt Modeling Language) component definition.

http://qt-project.org/doc/qt-5/qqmlcomponent.html

149 questions
1
vote
1 answer

Create Slider tickmarks in Qt6

I have been trying to create tickmarks(numbers) to Slider in qt6, the tickmarks property is removed from qt6. Slider contains min max and stepsize value and on the basis of this data numbers should be there in slider. Probably easiest if you take…
Shrishti
  • 11
  • 1
1
vote
0 answers

How to use property variables in ListElement

I am trying to build an ListModel with Listelements by using pre-defined variables in qml. The error i am getting is "QQmlComponent: Component is not ready", "cannot use script for property value" On my code, i removed the css or qss edits on…
utkuyceng
  • 43
  • 6
1
vote
0 answers

QtQuick 1.1 Image Rounded Corners

I am limited to using QtQuick 1.1 (Qt 4.8) , and so have no access to the GraphicalEffects library. Also I am not able to use any C++ and so the solution has to be pure QML (frustrating limitations - i know!). I need to be able to display an image…
teh_raab
  • 384
  • 1
  • 3
  • 21
1
vote
0 answers

How to close a popup QML after the animation has run?

I have two animations in my popup component, one runs when I open the popup and the other should run when I close it. Both animations work correctly, my current problem is that the animation runs after closing the popup, so it is not visible while…
Ariana Rubí
  • 73
  • 11
1
vote
1 answer

Updating Qt Shader from Qt 5.15 to Qt 6.2

with the new Qt6.2 update, vertex and fragment shaders are required to be packaged in a .qsb file instead of embedded as strings in the ShaderEffect component. I'm trying to change my vertexShader to use the new standard. Below is the code…
gustavo
  • 11
  • 1
  • 3
1
vote
1 answer

QML - change how transition between pages looks

I know this is probably super basic, but I am new to learning QML and have a question about transition between pages. In this example I have a button with which I want to switch between my 3 pages. the transition works, but the pages always move…
1
vote
2 answers

Qml semi transparent blur overlay rectangle

I am trying to create a semi transparent blur rectangle which is overlay on another rectangle in Qt Quick Qml. Rectangle { id: mainRect anchors.fill: parent color: "transparent" // This is my background rect Rectangle { …
User7723337
  • 11,857
  • 27
  • 101
  • 182
1
vote
1 answer

How to subclass QML Window?

I need to add some features in c++. But I struggle how to properly create my own QML window type. I have tried to subclass QQuickWindow and register my new type and use it in My QML project. But when starting it show error, that I can not set…
1
vote
1 answer

Creating listview from QQuickItem in C++

I am trying to make a listview component using QQuickItem and load its model using QAbstractListModel. Below are the steps which i tried. listviewComponent.qml ListView { required model delegate: Text { required property string type …
kaddy
  • 109
  • 11
1
vote
2 answers

Is there a Qt/QML function to check if a shape has been clicked?

I am trying to register a click in a QML Shape which forms a hexagon. I know there is the Shape.FillContains() https://doc.qt.io/qt-5/qml-qtquick-shapes-shape.html#containsMode-prop property which I am trying to use. But I do not know how to…
Zaragesh
  • 25
  • 6
1
vote
0 answers

QML Loader: Binding loop detected for property "y"

How can i over come this issue: QML Loader: Binding loop detected for property "y" Loader { id: grooveLoader property QtObject styleData: QtObject { readonly property int handlePosition: handleLoader.x + handleLoader.width/2 } x:…
Sush
  • 21
  • 4
1
vote
1 answer

Qml Error: Cannot assign QObject* to QQuickItem

I have a Rectangle with a MouseArea in ApplicationWindow. By clicking the mousearea, the size of the rectangle should be increased, which works perfectly. But somehow centering the rectangle in the middle of the ApplicationWindow does not…
Noctera
  • 107
  • 2
  • 7
1
vote
1 answer

QML - GridLayout - ROW and COLUMN Span - Understanding

I'm trying to learn QML and at this moment I'm having some problems with understanding of rowSpan and columnSpan, so sorry if this question may sound stupid for some of you. WHAT I LEARNED: Correct me if I'm wrong but in a GridLayout should be like…
Mircea
  • 1,671
  • 7
  • 25
  • 41
1
vote
1 answer

How to change colour of delegate component on map in qt qml

I am using MapQuickItem as a delegate component on map. I have three component. I want to chnage the colour of delegate component when I am clicking on component.And rest are as same colour.How to change the colour of only selected component…
srs
  • 121
  • 8
1
vote
1 answer

QML Shape: How can I force data property to update in a clean way?

I am trying to make a window where I can draw triangles and delete any of them with a Shape{}. In my example below, I can draw 2 types of triangle: Up triangle: green and filled Down triangle: yellow and not filled Basically, I choose the type of…
1 2
3
9 10