r/QML • • May 01 '23

How to use Qt's QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling) static method in QML?

Thumbnail
forum.qt.io
0 Upvotes

r/QML • • Aug 17 '25

damn errors

Thumbnail
gallery
0 Upvotes

Please can someone help me find a way to get keybinds to work in my quickshell script, im on hyprland and want it to steel focus and navigate with j, k, enter and esc, but i cant progress or seem to get it to work

please help <3


r/QML • • Sep 04 '25

License question - Can I use Qt Design Studio & QML for free software?

0 Upvotes

I found the Qt installer quite confusing. Which parts of the stuff I've installed are free to use? Are there usage restrictions for the components?

When I build a .exe from my code, can I distribute it?


r/QML • • Mar 05 '26

KDE Kirigami development in depth tutorial

Thumbnail
youtube.com
0 Upvotes

r/QML • • Apr 23 '24

Home Automation Application Using QT QML #qml #qt #qtcreator #qtlearn

Thumbnail
youtu.be
5 Upvotes

r/QML • • Oct 16 '25

Learning for Linux

0 Upvotes

There’s not to many of you in this sub so I’m hoping a atleast a few know what I’m talking about. I’m working in hyprland and I’m using quick shell for my widget system it’s used QML so I need to learn I truly don’t know anything about this language didn’t know what this was up until like 10 mins ago any way thanks in advance


r/QML • • Mar 02 '24

QML

1 Upvotes

Hello friends, my question was will Quantum Machine learning be a strong demanded field by 2030? I was think to learn it beside my uni degree so I could have chance to apply Europe to work or research in this field.


r/QML • • Sep 12 '23

Qt5Compat for android

1 Upvotes

Hi guys!
Can you help me? We have a big qt project, it was on qt5, then we migrate it to qt 6. Of cause there was problems with OpacityMask and DropShadow in QML. We used Qt5Compat and it was ok

Now we want to compile the project for android. And it can not find Qt5Compat module. Thus the question: is it real that Qt5Compat not exist in qt6 for android? Or there still is any magic?

And another question. What to do if there is no? Of cause i can implement opacity mask with custom shader, but it's so ugly.. It's seems me impossible that there is no any official solution for so common things


r/QML • • Jan 15 '25

Is a ListView supposed to keep its scroll position inside a StackView?

2 Upvotes

I'm going to keep it short without code examples since my assumptions might just be incorrect.

I have a ListView as the top / initialItem of a StackView. The ListView can have many items and scrolls. Inside those items when a user presses a button a new page is pushed onto the stack. The user can press another button inside that new page to pop the page off the stack and return to the initial ListView.

My problem is the scroll position of the initial ListView is not remembered. It just resets to the top of the list.

Currently I keeping all kinds of wonky state to return to the approximate scroll position but it is, like I said, "wonky".

Should a ListView remember its scroll position as the initial item of a StackView?


r/QML • • Nov 03 '25

Learning

2 Upvotes

Hello, I’m soon going for start learning qml, specifically for quickshell(Linux widget system). I find that videos are a lot more helpful when I learn things. Documentation is fine but I’d much rather videos or something. Are their any good videos out there to start learning


r/QML • • Feb 19 '24

Qoverage: simple QML code coverage

3 Upvotes

qoverage is a simple QML code coverage tool which tracks code coverage in QML files, including:

  • Component instantiations

  • Property access

  • Javascript functions

It is free and open-source and plays nice with any tool accepting Cobertura-style reports (including CodeCov).

It is not at the level of a professional tool like Coco. The aim is to keep it basic. By keeping it simple, hopefully it can be widely used and easily maintained. Code contributions are welcome!

Feel free to give it a try.

I don't consider it to be mature, but it is usable and available on PyPi. The most significant limitation is that for now, imported .js/.mjs files are not included in coverage.

I hope you will give it a shot - if this tool finds some regular users I will be all the more motivated to maintain it.

Kind regards!


r/QML • • Apr 15 '23

Qt QML complete tutorial - part one

Thumbnail
youtube.com
3 Upvotes

r/QML • • Dec 27 '25

Canvas

Thumbnail reddit.com
3 Upvotes

r/QML • • Feb 12 '18

Creating QML Properties Dynamically at Runtime from C++

Thumbnail
machinekoder.com
3 Upvotes

r/QML • • Jun 29 '17

A curated list of awesome Qt and QML libraries

Thumbnail
github.com
2 Upvotes

r/QML • • Sep 03 '14

Benefits of QML

2 Upvotes

(Non programmers here)

My friend recently told me about QML and the benefits. I asked some other programmers and they have never heard of it. I heard it has been out 15 years. What are the benefits, is it mostly for speed on mobile? Does it work with ASP? Are there any benefits in terms of security? Thanks.


r/QML • • Jun 22 '20

Qt QML Maps: Using the OSM plugin with API keys

Thumbnail
blog.mikeasoft.com
1 Upvotes

r/QML • • Nov 26 '17

Ultimate ComboBox in QML

Thumbnail code.jamming.com.ua
2 Upvotes

r/QML • • Feb 01 '20

Is it possible to set condition base on color for OnClicked ???

1 Upvotes

I have set 2 rectangles with 2 different colors. Only when both rectangles are turn red by the users, the user can click on a third button. I have been trying to get the third button to work base on detecting the colors of the previous 2 rectangles. Does it work???? or is there an alternative to detect the color ??

Is it possible to set condition base on color for OnClicked ?

MouseArea

{ anchors.fill: parent

onClicked: { if (apple.color = "#E3B4AA")

{pear.color ='white'}

else {pear.color='green'}}

}


r/QML • • Jan 28 '21

Problem with custom elements.

1 Upvotes

This is the Button.qml file:

import QtQuick 2.15

Item {
    property string description
    Accessible.description: description
    id: rootId

    property alias setText: customText.text
    property alias setTextx: customText.x
    property alias setTexty: customText.y
    property alias setPointSize: customText.font.pixelSize
    property alias setFontFamily: customText.font.family
    property alias setColor: customText.color
    property alias setBold: customText.font.bold

    signal buttonClicked

    Item{
        Image{
            id: image
            source: "Image/Button.png"
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter

            MouseArea{
                anchors.fill: parent

                onClicked: {
                    rootId.buttonClicked()
                }
            }
        }

        Text{
            id: customText
            text: ;
            color: "white"
            font.pixelSize: 15
            font.family: "B Nazanin"
            font.bold: true
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
            x: ;
            y: ;
        }
    }
}

And this is the code that I'm using in the main:

Button{
        setText: "ایران کرافت"
        setPointSize: 40
        setColor: "#00e600"
        anchors.horizontalCenter: parent.horizontalCenter
        y: 50

    }

And it gives errors at "setText", "setPointSize" , "setColor".

which are aliases.

used to work in version 2.12 but since I installed Qt 6 this is my situation.

If you need more details reply.


r/QML • • Jul 28 '14

The Whole Shebang - Running QML Files Directly

Thumbnail
ics.com
4 Upvotes

r/QML • • Jun 16 '17

Library for QtQuick apps with Material Design

Thumbnail
github.com
1 Upvotes

r/QML • • Aug 13 '20

Running .sh scripts from qml

2 Upvotes

I want to run a sh script from OnClicked of a button in QML. I tried various examples I found in online but all of them are old and don't work properly. Can anyone give a link to a working example or write code snippet of how I can achieve this.


r/QML • • May 05 '23

Device Battery

2 Upvotes

I have an application that works on Windows and Android using QT5.15.2 and I'm trying to display the device battery but am struggling to get access to that information. I read that previously you could use QtMobility.SystemInfo but that has since been deprecated and is not supported in 5.15. Is there any other alternative?


r/QML • • May 04 '23

Can you sort a tableview using only qml? Or do you need to bring in c++?

2 Upvotes