cmake 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 ArticleIs there a way to make the text characters inside a Label not have a space...
In a QML code, I want to put a label containing capitalised words inside an image.The label is at the bottom of the image and I want the bottom of the text to match with the edge of the image (for...
View ArticleMissing types in QtQml even if I have imported QtQuick in Qt5.15.11 for Android
I have an App with the following configurations.Win32 app with Qt5.15.2.Android App(API 29) with Qt5.12.6.Now I am trying to upgrade Qt version to Qt5.15.11 for the Android App.For most of my QML...
View ArticleHow can I automate user actions in a Qt based desktop application? [closed]
I have a desktop app that is developed by using Qt and C++. I need to automate user actions such as clicking buttons, setting inputs to fields etc. in order to create an automated test suite.I am...
View ArticleProperty alias: "Invalid alias target location" unless property is bound
Why doesn't this work: property alias monitorLabelText: monitorForm.monitorLabel.text header: MonitorForm { id: monitorForm }It fails with Invalid alias target location: text.But this works: property...
View ArticleHow to scale a QML rectangle without also scaling any child text
I have the QML component outlined below. The problem I have is that when I scale the rectangle using a pinch area (which I want to happen), the text that is a child to that rectangle is also scaled...
View ArticleQt.createComponent() with existing imported type
I'm trying to create a component of an existing imported type. While this task seems important enough (say when creating components of types found in your own installed QML plugins) it does not seem to...
View Articlewindow flickering when resizing QML
The application window flickers when I change its sizepart of the code responsible for resizing MouseArea { // изменениеразмера top width: parent.width height: 2 cursorShape: Qt.SizeVerCursor...
View ArticleHow to set custom separator between items of ListView
Is there a way to use custom delegate as a separator between every two consecutive items of ListView just like header and footer properties?
View Articlethe x and y positions of the window are always 0
I was working on the code on a laptop, when I had access to a PC, I transferred all the code to it, but it does not work the way it works on a laptop, my window should move when holding down the left...
View ArticleQML the shadow of widgets inside ScrollView is cut off
I have a TextField that has a shadow, I want it to be visible when I put it in a ScrollView, but it gets cut off#TextField (in other code it will be like InputField)import QtQuick 2.15import...
View ArticleQt/QML issue: when launching cannot find main.qml file
My C++/QML app compiles, but at launch I get this error:00:51:26: Starting /home/pietro/QtQuickTest/build/Desktop_latest-Debug/appQtQuickTest...QML debugging is enabled. Only use this in a safe...
View ArticleHow to create drop shadow for Rectangle on QtQuick 2.0
How can i draw a drop shadow for a Rectangle visual item on QtQuick 2.0?I like to draw a drop shadow for my main window (I have a transparent and no-decorated window)
View ArticleHow to create a drop shadow for Rectangle
I want to draw a drop shadow for my main, transparent, and no-decorated window, which is a Rectangle.How can I do that using QtQuick 2.0?
View ArticleQtQuick Dialog with Yes / No / Cancel buttons
I thought that this should have been a super common use case:import QtQuick 2.15import QtQuick.Controls 2.15import QtQuick.Controls.Universal 2.15import QtQuick.DialogsDialog { id: rootItem title:...
View ArticleWhere does spacing between Panes come from?
I've looked at tons of questions on SO about content margins in QML, but all the answers point to missing spacing: 0 properties. I've done all that, but still get weird spaces that I cannot eliminate....
View ArticleAutoresize text in QML
In the process of studying QML and Qt Quick, the following question arose. How can I make the text automatically reduce the font size by decreasing the element in which it is located.Now I have this...
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 ArticleComboBox Popup not showing all items
I am using Qt 5.9.1, and the following ComboBox's popup doesn't display all the elements:import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 2.2Window { visible: true width: 640 height:...
View ArticleHow to customize ComBox Popup items
I am trying to customize the QML 2.14 ComboBox, and I did follow Customizing ComboBox documentation, but I am not able to customize the ComboBox -> Popup -> ListView -> "delegate".I want to...
View Article