Questions tagged [qtquick-designer]

User interface designer for the declarative programming language qml

QtQuick designer is a designer tool which provide a WYSIWYG functionality similar to
for backed user interfaces

18 questions
13
votes
1 answer

Working with .ui.qml files

In Qt 5.4, the template when creating a new "QtQuick UI File" generates two files: MyScreen.qml and MyScreen.ui.qml. The MyScreen.ui.qml file seems to be for UI only, since Qt Creator suggests you should only edit it in design mode. That implies…
Tim
  • 4,560
  • 2
  • 40
  • 64
8
votes
1 answer

QML - Imperative code not supported

Can someone comment on the fact that for QML, any imperative JavaScript code is not executed unless it is part of an extra component. I am facing such kind of problem when I include the following code to my QML: function qmlSlot(text){ …
Viktor Kovaleva
  • 173
  • 1
  • 7
5
votes
1 answer

can't edit QML files in designer mode

i am trying out qml designer using qtcreator 2.0.1 but the designer tab is disabled when i create a new qml project. Can qml be edited in designer mode like ui files in c++?
Dr Deo
  • 4,650
  • 11
  • 43
  • 73
3
votes
1 answer

Custom style page for qt quick QML aplications (like HTML and CSS)

Is possible to create a custom style file in QT and apply it for all QML files (like CSS does applies to HTML )? Is there any "class" declaration for QML ?
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
3
votes
1 answer

Qt Creator qml: Use (extra) Qt Components library (ubuntu)

When I create a new Qtquick qml project and modify a qml file in "Design" mode I see a limited number of Qt Quick Basic components under the window Library QML Types (like Rectangle and Button) When navigate to the folder…
Reinoud
  • 31
  • 1
2
votes
1 answer

How do I import components into QtQuickDesigner?

I am trying to learn Qt version 6, and I'm at a point where my book has me importing QtQuick Controls. The book says to click on the "Imports tab" in the Library pane, and shows a screenshot containing the tab. (Virtually every web source I've been…
jkb
  • 2,376
  • 1
  • 9
  • 12
2
votes
0 answers

The specified module could not be found: QTJambi

I decided to use QTJambi for my first QT project. After reading Wiki, I started to install this library. Here is tree of my Qt\6.1.0\msvc2019_64\bin folder: C:\QT\6.1.0\MSVC2019_64\BIN │ androiddeployqt.exe │ androiddeployqt.pdb │ …
AdisAlagic
  • 436
  • 2
  • 8
2
votes
1 answer

how to use .qmlproject .ui.qml forms from Design Studio in Qt Creator .pro project?

I'm involved in a project that has a designer working in Design Studio to develop .ui.qml forms (with related assets) and me, the developer, working on an existing Qt Creator .pro project. I would like to keep the two projects in separate…
alpartis
  • 1,086
  • 14
  • 29
1
vote
0 answers

How do I make QML Designer display button icons?

I made a new QML project which auto-generated a main.cpp. I added an icon to the qml.qrc which now looks like this: main.qml bookmark.png I then add…
nwp
  • 9,623
  • 5
  • 38
  • 68
1
vote
0 answers

trying to communicate arduino to pc via qserialport

to connect arduino to PC after creating a qtquick based application, I created arduino.cpp and arduino.h files. There is something wrong in the code but I can't get it and resolve it. Please, if someone can help, here are the .cpp and .h files. I…
1
vote
1 answer

Using behavior in qml ui form

is there a way to use behavior from outside the item ? (QtQuick designer doesn't support behavior). say I have a rectangle defined in From.ui.qml with then id rec, in the file Form.qml I want to assign a behavior on x property of rec, how can I do…
Houss_gc
  • 727
  • 5
  • 27
1
vote
3 answers

Qt c++ and Qml signal and slot connection

I have created a qt widget for my project. Button, signal and slot, thread everything working properly also I have taken output. Dialog.h public slots: void startThread(); void stopThread(); }; #endif // DIALOG_H dialog.cpp void …
Jerwin Prabu
  • 336
  • 1
  • 3
  • 16
0
votes
1 answer

How to activate Qt Quick Designer Plugin on Ubuntu based distro?

I have Linux Mint 21, then I install qtcreator through apt repository. I want to activate Qt Quick Designer Plugin, based on this link, I should be able to activate it, but I didn't found QmlDesigner. About Plugins Screenshot
tirzasrwn
  • 21
  • 5
0
votes
2 answers

Qml works when run but will not load photos in Qt designer

When working on a small qml project I found this behavior and I am not sure if I am doing anything wrong or if this is just how it is. I created a simple test file Test.qml along with the main.qml and main.cpp import QtQuick 2.0 Item { width:…
melaz123
  • 1
  • 1
0
votes
1 answer

TextArea problematic background QML QT

Trying different code combinations and partially solving my problem I came across a behavior that I can not quite explain. So to the point, When I create a simple TextArea without Scrollview it looks like this: RowLayout { id: rowLayout …
Jakinto
  • 11
  • 1
  • 5
1
2