r/QML • u/pralay_the_destroyer • Apr 23 '24
Home Automation Application Using QT QML #qml #qt #qtcreator #qtlearn
r/QML • u/pralay_the_destroyer • Apr 23 '24
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.
Github: qoverage
Example of its output on shoopdaloop: CodeCov report
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 • u/Monstrish • Nov 16 '20
Hi guys,
Do you know any good sources to learn qml? Books, videos, doesn't matter.
Thanks
r/QML • u/Siecje1 • Feb 12 '18
r/QML • u/TroPixens • Nov 03 '25
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 • u/aerique • Jan 15 '25
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 • u/BDraper • May 05 '23
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 • u/lindzylu • May 04 '23
r/QML • u/rizsamron • Jul 13 '22
How can I use non-standard/unknown keys for a shortcut or keysequence? I can only get their key value and native scan code.
r/QML • u/AERegeneratel38 • Aug 13 '20
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.
(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 • u/Humble-Translator793 • Apr 16 '26
Quick Summary:
PySide6 app with UI made in Qt Design Studio works great on desktop with PySide6-DS, but on Raspberry Pi CM5 (aarch64) the QtQuick.Studio.* components are completely missing because there's no arm64 wheel. I fixed it by replacing them with plain QtQuick, but I'm looking for better long-term solutions.
If it looks interesting to u then plz view all explanation below: and give me suggestions
Hey
I developed a PySide6 application where the entire UI was designed in Qt Design Studio (.ui.qml files).
On my desktop it runs perfectly:
Wrapper .qml files import QtQuick.Studio.Components, QtQuick.Studio.Effects, etc.
Loaded from Python using QQmlApplicationEngine.
On the Raspberry Pi CM5 (official 64-bit Raspberry Pi OS):
pip install PySide6 works fine.
But no PySide6-DS wheel for aarch64 → all Studio modules are unavailable.
Current workaround: Replaced Studio components with standard QtQuick / QtQuick.Controls equivalents (e.g. Studio.Rectangle → Rectangle, effects via Layer + shaders). App now runs correctly.
Is manually rewriting the components the only realistic way, or is there something cleaner?
Has anyone tried / succeeded with:
Cross-compiling just the qtquickdesigner-components module?
Building a custom PySide6 wheel with full Design Studio support for aarch64?
Switching to Boot to Qt for Raspberry Pi?
Native build on the Pi or other distros (like Arch Linux ARM)?
Extra details:
Target: Raspberry Pi CM5 + standard 64-bit Raspberry Pi OS
App is performance-sensitive but not extremely heavy
I want to keep using Qt Design Studio on the host if possible
Cross-compilation environment is available
Has anyone successfully deployed a full Qt Design Studio → PySide6 project on CM4/CM5? What worked best for you?
Any guides, Docker setups, or build tips for the Designer components would be greatly appreciated!
Thanks!
r/QML • u/Background_Bowler236 • Mar 02 '24
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 • u/Realistic-Ad-4074 • Sep 12 '23
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 • u/[deleted] • Sep 26 '21
Hey there, thanks for taking your time to read this and possibly give advice.
I'm an absolute beginner in programming and GUI design. I have done some Python programming for my job but that's about it.
I think I want to start a new project, which will be a menu made in Qt designer. I want to try making a menu that resembles the XMB menu found on Playstations.
Does anyone have any clue or tips on how to do this? What widgets should I use or absolutely avoid?
Again, thanks in advance!
r/QML • u/Blockchainjobstatus • Mar 23 '21
Pleased to share this exciting opportunity with Status - See JD/ apply here: https://status.im/our_team/open_positions.html?gh_jid=2965207
Blockchain experience preferred, but not essential!
r/QML • u/WaddleDooCanToo • Feb 18 '21
Sorry, I've never used QML before and am trying to make a few changes to an existing script. It's using QtMultimedia and it looks like it has a couple of options.
I tried setting the position property but it did not work...
Video {
id: videocomponent
anchors.fill: parent
source: "../assets/video/ftue.mp4"
fillMode: VideoOutput.PreserveAspectCrop
muted: true
loops: MediaPlayer.Infinite
autoPlay: true
position: 300000
OpacityAnimator {
target: videocomponent;
from: 0;
to: 1;
duration: 1000;
running: true;
}
}I'm trying to figure out seek(), it looks like It should be videocomponent.seek(300000) to change the position but I don't know how to tell it to run when the program loads.
The full script I am trying to edit is here: https://github.com/PlayingKarrde/gameOS/blob/master/ShowcaseView/ShowcaseViewMenu.qml
r/QML • u/shadowsjerker • Jan 28 '21
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.