HTML formatting in QML Text
I have a part of HTML code, which displays small table. In browser it looks like in the picture:But when I want to display it in Text QML (which, according to the documentation, should support HTML), I...
View ArticleAccessing C++ QLists from QML
If I've got a list of things in C++, how do I expose that to QML (in Qt5 / QtQuick 2)? It seems like QML can only understand QObject-derived classes, which is an issue because QObjects can't be put in...
View ArticleQML ListView section works in 6.5.1 but not in 5.15.2
The following code works as expected in 6.5.1 but not in 5.15.2import QtQuick 2.15import QtQuick.Window 2.15Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ListView {...
View ArticleImage rounded corners in QML
To my surprise, the Image component has no radius property. I tried emulating the rounded corners by putting the image in a rounded Rectangle, but it does not clip the corners.Rectangle {...
View ArticleIs there any DatePicker control for Qt 5?
I'm writing my first QML/Javascript app for QtQuick 2.0. I need to place a DatePicker control, but I haven't found any control like that under QtQuick.Controls -and nowhere, in fact-.I'm starting to...
View ArticleQt.labs.plarform is not installed only in release mode
I am using FileDialog from Qt.labs.platform 1.1 on win 10 in Qt creator, compilator I use is Desktop Qt 5.15.2. MinGW 64 bit.In the debug mode is working everthing fine but when I change to release...
View ArticleIn QML, how to set properties for every child of a Layout?
I'm new to QML and I want to place a bunch of itmes in a column. Lets say I have a custom component called MyComponent which is basically a rounded Rectangle with text in it.I want to put e.g. 5 of...
View ArticleTranslatable qsTr() strings not translating in QtQuick app
I have been trying to create a minimal multilingual app using Qt Quick. Since I am new to Qt I tried to follow the implementation steps in this blog/tutorial post. However, I cannot get the qsTr()...
View ArticleQML form layout
I use QML for UI in my app and now I want to build some form.This is a code:Window { width: 400 height: 600 flags: Qt.Dialog modality: Qt.ApplicationModal GridLayout { id: mainLayout columns: 2...
View ArticleScrolling not working for ScrollView wrapping a StackView in QtQuick application
I am trying to create a desktop app using StackView wrapped in ScrollView so that all pages pushed to the stack are scrollable if necessary. However, the scrolling isn't working. How can I make...
View ArticleDeactivate QML Item to avoid overlapping of action areas
How to proceed if one has stacked elements with stacked action areas to make sure that you acton what you see and not on underlying elements?I'm following a tutorial on Qt Quick 2.0 programming for...
View ArticlePySide6 and QML error: qtquick2plugin.dll: The specified module could not be...
I use python version 3.11.1 in a virtual env and used pip install pyside6 to install pyside6The full error I get is:QQmlApplicationEngine failed to load...
View ArticleHow to disable horizontal flicking in ScrollView
I am trying to disable only horizontal flicking (with having only vertical scrolling and flicking of content) when using QtQuick.Controls 2.2 ScrollView, which I declare this way:ScrollView {...
View ArticleQt 6.4 | QQMLApplicationEngine load() RUN on Debug but dont run on RELEASE
Why qmlEngine.load(url) dont work in init function on RELEASE?I have function for init class instead default constructorWhy is isnt work?#include <QApplication>#include...
View ArticleIs it possible to connect multiple slots to one signal?
I am trying to figure out the best way for a QML object to send out a signal and for many other QML elements to respond to it. Normally, if you create signal mySignal then you have a handler...
View Articlewhat data structure should i use to store Signal's 1.Frequency 2.Starting...
I am developing a qt-quick application which is used to monitor the real-time charts for Time v/s Frequency Graph-plot.In this application i have to keep track offrequency of signalInitial time of...
View Articlecmake does not find QtQuick even if it's installed
I installed Qt 6.2.0 with the online installer and selected most of the module for Desktop development.I get this strange...
View Article