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
0
votes
2 answers

Wordwrap on Text inside rectangle will not wrap using Qt QML

So I have been trying for weeks to simply get my text to wrap when it gets to to end of the rectangle. I have tried loads of things and this snippet is just the latest. Even if I use Layout ONLY and drop the "anchor" it does not do word wrapping,…
0
votes
0 answers

How to make com.mycomponents retrievable by Qt Design Studio?

I receive an error by Qt Design Studio 3.9.0 after I run my small and simple app, even if the same app runs correctly both on Windows and on an android device simulator, with Qt Creator and/or MS Visual Studio. I don't understand what am I supposed…
Alessio
  • 1
  • 1
0
votes
1 answer

How can I remove the delay of a QML ToolTip?

I rebuilt a periodic table using QML and stumbled upon the following problem. Due to size limitations I decided to reduce the amount of information that is shown to a minimum and instead implemented the option to hover over a certain element which…
PatrickRKa
  • 21
  • 4
0
votes
1 answer

How do I create a scaleable GridLayout in QML?

I am currently trying to create an application that includes a Periodic table. I want to to display this as a GridLayout where each Element is represented as a GroupBox inside the Layout. The problem I am facing is that the GridLayout wont scale…
PatrickRKa
  • 21
  • 4
0
votes
1 answer

Is there a way to create an empty grid inside a QML GridLayout?

I am trying to create a periodic table using QML. In order to arrange the elements properly (I use GroupBoxes) , I need to have blank space/empty grids. I already tried inserting empty Items into the desired grids but the GridLayout would just…
PatrickRKa
  • 21
  • 4
0
votes
1 answer

QObject properties initialized too late for binding to dynamically inserted properties

I'm implementing a system for syncing data from and to QML and QtScript using a QObject as the backing model and facade objects in QML, QtScript and C++, to simplify data synchronization between different subsystems. The idea is that one could…
Danik
  • 404
  • 3
  • 14
0
votes
2 answers

Why creating an qml object from c++ does not show anything on application

I have a file called "SingleTile.qml" with following content import QtQuick 2.15 Item { width: 100; height: 100 Rectangle { anchors.centerIn: parent color: "green" } } On a button click, i do the following to create an…
0
votes
1 answer

Use button from a qml to control(interact) the size of Rectangle which is in another qml file [QML] [JS]

I recently start to learn Qt and QML for prototyping some UI and experienced some issue. Basically, I have a Rectangle (id: myItem) in TestB.qml which is considered as a button. I also have another Rectangle (id:changedrect) in TestA.qml. The…
0
votes
0 answers

QML not resolving a custom module, why?

I am trying to setup something very simple but the QML is not resolving my module. Why? I just following the tutorial below, but it does not use cmake, not sure if this is cmake issue or code. https://www.youtube.com/watch?v=yTH5e6atHoE I created a…
gmmo
  • 2,577
  • 3
  • 30
  • 56
0
votes
1 answer

QML component isn't displayed if it was created programmatically from C++

My goal is to create a custom Component (lets call it ComponentLoader) which can instantiate another component (lets call it DelegateComponent) via delegate. The problem is that the instance of DelegateComponent isn't displayed after is was created…
Dmitry Katkevich
  • 883
  • 7
  • 26
0
votes
1 answer

Opacity change on button hovered glitch QML

I have created a custom virtual keyboard where the components are buttons, whose attributes I have defined in the code below . When I rapidly move the mouse across the buttons, I find that there is a 'flashing' effect whereby the button opacity…
0
votes
0 answers

How to create a Row type of custom components in QML?

For context I created a Row of two radio buttons, which worked perfect but I wanted to create a custom radio button component to reduce code, and when I did the Row doesnt even see the custom radio button as its child for some reason, any idea why…
0
votes
0 answers

Insert characters with accentuation in inputText

I need to insert characters with accent like É, ã or â when my app works in portuguese but when I try to insert (e.g. " a + ~") it doesn't happen. The problem is caused because I'm using Qt Virtual Keyboard but I don't know how to avoid it. Code…
0
votes
1 answer

DropShadow QML widget in Qt6

I have a problem: I need to use DropShadow effect from QGraphicalEffects (which deleted in qt6) in my app. How I can do it or replace it?
Snake-net
  • 18
  • 4
0
votes
1 answer

Qt Component Loader scaling to fill the whole Window therefore covering the other Items

I work on a Qt project, where almost all of the QML Items are in the same file main.qml. The application uses StackLayout to navigate through other QML files, plus the need to present the Items within the main.qml itself. I use Loader to call a…
Anas AG
  • 87
  • 9