QML ListView that fits the chosen style
I want to create a simple GUI, and I need to display a selectable list with multiple rows in each entry. I'm using Material as the main style, but it doesn't look like Material. Is there a way to...
View ArticleQML baseline alignment without using a layout
I want to use baseline alignment anchor without using any fancy RowLayouts, etc. I want to use bottom anchor of a label be anchored with the baseline of the text edit. I thought, that baseline of...
View ArticleQQuickItem::clipRect clips QSGNode in QQuickItem::updatePaintNode()
I made a QML component based on QQuickItem. I redefined the QQuickItem::clipRect() method in it in order to clip nested components (childrens) along a certain border, which is smaller than the size of...
View Articleabout qt6 qtquick QML in macos.move rectangle but leave transparent shadow...
First,this picture is my creat UI, enter image description herethe next pic is the UI after move rectangleenter image description hereobversly,rectangle move but leave a shadow with a frame。after my...
View ArticleQT Creator Design View shows layout correctly, but complied app is completely...
I have a very basic QML file that I wrote in QT Creator. When I open it in the Design tab, it looks correct. When I compile and run the application, it is completely different and incorrect.Design...
View ArticleForeach delegate in QML view
Is it possible to iterate through the delegates of a ListView or GridView using foreach or a similar function?
View ArticleDifference between Window and ApplicationWindow in QML?
https://doc.qt.io/qt-5/qml-qtquick-controls2-menubar.htmlMenuBar is supported in ApplicationWindow and not in Window.Following throws an error "Invalid property name: MenuBar"Window{ visible: true...
View ArticleDynamically retranslate Qt Quick UI
I want to dynamically retranslate Qt Quick GUI strings.There is intrusive trick to retranslate affected string properties, whose notifications about changes cannot be centralized.Is it possible to make...
View ArticleHow to create a window without a title bar but with the...
I want to create an application without the title bar, but with native close, minimize and maximize buttons. This is the intent of the layout:The app is built using Go and QML. I was able to remove the...
View ArticleHow to add and use a resource in QML?
I want to use a QtQuick Image object in a simple Qt project, and include the image in the project. I have added the image to the resource file. I have used debugging to be sure that the resource exists...
View ArticleGestures in Android Wear
I'd like to ask you about the gestures in android wear. There is some app (game 20x48), and playing that game player can swipe from one side to the other. And the problem is: when I swipe from left to...
View ArticleQT Quick QML application support for multiple display size
How do you have Qt Quick applications render properly on different screen sizes? For example, screen sizes 800x600 and 1280x720.How should I build the application window so that it looks the same on...
View ArticleMultiple paths in QML Canvas Context2D
Is there any way to use multiple paths in the same canvas context like in HTML5 canvas? there's no Path2D object in qt/qml.I need to draw a polygon from a point list and each vertex should have an...
View ArticleHow can I get a specific value by index from a custom Model in QML?
I'm trying to get the name from a specific user based on an index from the UserModel (which is a list model according to the wiki).When I attempt to print out the name using console.log("username: {" +...
View ArticleClick two buttons in the same and open the action of the second button using...
I have these 2 buttons and I want to click on both to open the onClick action of the second button. How can I do that to get my desired result? Maybe to use signals?Button { id: btnLevel1 x: 1016 y:...
View ArticleQt Quick parent, not the same as the 'id' of the parent
I'm playing a bit with Qt Quick and I wanted to create a title bar for my application. So I inherited QQuickPaintedItem, painted a bit on it, and wanted to use it as a title bar for my Window. I'm...
View ArticleQtQuick - what is meant by "parent item"?
The following QML code:Window { id: window width: 450 height: 700 visible: true StackView { id: mainStack property Item itemTest: Item { id: itemTest ColumnLayout { id: mainLayout width:...
View ArticleTrying to center items programmatically in a ListView
I would like to have centered items in QML ListView and therefore I've added following code of my ListView:import QtQuick 2.0import QtMultimedia 5.5import QtQuick.Controls 1.3import QtQuick.Extras...
View ArticleQt quick controls ScrollView
I didn't found any good resource how to use this component and it still fails layout of my app (check that right properties inspector). What i did wrong?without ScrollViewwith ScrollViewscroll that...
View ArticleHow to center dialog on screen in QtQuick Controls 2?
All my dialogs appear on the top left corner of screen instead of the center.What is the best way to let the dialogs be placed automatically correct?import QtQuick 2.7import QtQuick.Controls...
View Article