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

Not able to cancel the drag when we exit mouse area

I have an slider and an image used for sliding over the slider as shown below. Image { id: slideImg source: "/slider/SliderSelected.png" width: 65 height: 65 onDragActiveChanged: { if (!dragActive ) { …
user2717079
  • 299
  • 1
  • 3
  • 13
1
vote
0 answers

setting width and heigth of a qml component from context property

I create a Setting class and set an instance of it as a context property in root context. In qml file I called value to read settings values. All settings are working correctly except width and height. They're properly load but not applied. here is…
hamed1soleimani
  • 304
  • 1
  • 2
  • 13
1
vote
0 answers

QML ListView with key navigation

QML- I have a ListView that is controlled by either touch, key navigation, or by side up/down navigation buttons. The ListView is used in different parts of the program and always has a different number of items in the list. I want to set the focus…
1
vote
2 answers

QML slider tickmark with text at start and end

How to achieve something like this. Should the text thin and thick must be outside slider as labels or can they be part of tickmarks?
Satyam Raikar
  • 465
  • 6
  • 20
1
vote
0 answers

How to initialize custom QQuickItem in Qt

I have implemented custom QQuickItem which is exposed to QML. Now it becomes more useful item in all platforms but due some reasons in Windows we are not using QML it's pure QT Application. But I am not able to instantiate custom QQuickItem in Qt,…
Jeggu
  • 569
  • 2
  • 10
  • 26
1
vote
1 answer

Integration testing: making C++ components visible to `qmltestrunner`

Suppose I have a number of QML components. They work with a component or a QObject (suppose it's a data source,but could be anything, even the old Horse/Animal/Dog with the method bark()) that I wrote in C++ and I expose in my main.cpp…
Tobia Tesan
  • 1,938
  • 17
  • 29
1
vote
1 answer

Why does a TextArea with NoWrap always cause an "anchor loop detected" warning?

Why is a TextArea with wrapMode: TextEdit.NoWrap always causing file:///C:/Qt/5.5/mingw492_32/qml/QtQuick/Controls/ScrollView.qml:340:13: QML Item: Possible anchor loop detected on fill. when I run it? I am running Qt 5.5 on a 64-bit Windows…
user2211907
1
vote
1 answer

Qt application disappears

hey guys I have a very simple QML file and I'm loading it with the following code: QQuickView view; view.setSource(QUrl(QStringLiteral("qrc:/Login.qml"))); view.show(); return app.exec(); The app GUI stays open for about 1 second and…
alessandro ferrucci
  • 1,261
  • 2
  • 24
  • 48
1
vote
0 answers

How are implicit dimensions of QtQuick items propagated?

I am trying to implement a component which should by default (if no width was explicitly set) take up as much space as it needs (i.e. depending on its implicitWidth). And if width was set at definition it should shrink its contents to fit in the…
Dmitrii Volosnykh
  • 1,165
  • 1
  • 12
  • 33
1
vote
1 answer

QQmlEngine symbols not found

I'm getting a linker error that a whole host of symbols including QQmlEngine and QQmlComponent constructors are undefined, from the main.cpp: #include #include #include #include…
OJFord
  • 10,522
  • 8
  • 64
  • 98
0
votes
0 answers

QML can I call destroy for "statically" created Dialog?

It is ok to do the following: Component { id: editDialogComp Dialog { onClosed: destroy() } } But what if I have SpecialDialog.qml: Item { Dialog { anchors.fill: parent ... onClosed: destroy() // is…
Vladimir Bershov
  • 2,701
  • 2
  • 21
  • 51
0
votes
1 answer

QQuickWidget's content disappears when parent's parent changes

I'm trying to build an application consisting of multiple QMdiSubWindows that each contain a QQuickWidget and can be moved between different QMdiAreas. I'm able to create subwindows and display QML content inside them, but this content disappears…
Jacob
  • 15
  • 4
0
votes
0 answers

Qt QML growing last element in ColumnLayout upwards

I have my own ChatInput component that contains TextArea wrapped with ScrollView that allows it to grow when you type a lot of text and I want to make it grow upwards but failing to do so. Is there any way to make it grow upwards? I tried 2 methods…
Yaroslav Shulyak
  • 151
  • 1
  • 12
0
votes
3 answers

Remove label on Textfield in QML

When I try to enter in the textfield, the placeholderText is displayed as label of the Textfield. Is there any way to remove the placeholderText when Textfield is active and filled? I didn't find any solution for this.
User22
  • 11
  • 3
0
votes
0 answers

Restore minimized frameless window from Taskbar

I'm creating one basic qml application with visibility:"FullScreen", and I have one button to minimize the application but after minimizing if i click on the exe in task bar its coming with framed application with min, max, close. I want it again…