Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • QML Image: Cannot open - CMake qrc

    Solved qt6.5 qml qrc cmake qtcreator 10.0
    15
    2 Votes
    15 Posts
    7k Views
    MucipM
    Hi, I solved by below edit but it is not good way. source: "file:///C:/Users/HP/Documents/Qt/Panel/car.png" Regards, Mucip:)
  • Qt don't see QtQuick library?

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
    No one has replied
  • Is there anyway to create histogram without using Qgraphs or Qchart

    Solved
    7
    0 Votes
    7 Posts
    177 Views
    V
    Thank you! I did not see your comment and tried with QQuickItem, it also worked! [image: 1a35fd2d-bfa9-4a61-b1d1-4931fcd7b1f4.png]
  • Resizing controls in SplitView

    Solved
    6
    0 Votes
    6 Posts
    129 Views
    T
    Yes, @GrecKo is right about the anchor, and the information about the SplitView.minimumWidth is misleading. Sorry about that.
  • 0 Votes
    1 Posts
    47 Views
    No one has replied
  • Qt Creator and Qt Design Studio integration (and Loader Component)

    Unsolved
    1
    0 Votes
    1 Posts
    44 Views
    No one has replied
  • How to add year selection into Calendar QML type of QtQuick.Controls 1.4 ?

    Unsolved
    3
    0 Votes
    3 Posts
    188 Views
    B
    It is probably best to avoid the Calendar from Controls 1 as it is deprecated in in Qt 5 and no longer exists in Qt 6. You could construct your own calendar with whatever behaviour you want using the components DayOfWeekRow and MonthGrid. These are in Qt.labs.calendar in Qt 5 but are in QtQuick.Controls in Qt 6 so there is a good upgrade path.
  • 0 Votes
    1 Posts
    43 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    0
    0 Votes
    0 Posts
    7 Views
    No one has replied
  • Access role enum value from QML

    Solved
    11
    0 Votes
    11 Posts
    193 Views
    E
    @GrecKo that's an interesting approach. Thank you for the idea! This thread could be considered as solved.
  • How to remove specific borders

    Unsolved
    3
    0 Votes
    3 Posts
    63 Views
    B
    @DeSGuN Do you mean the border on only certain sides of the rectangle? I don't think there is a built in way to do this. You might be able to overlay thin rectangles to cover the borders perhaps, but I am not sure how well it will work.
  • How to configure QmlLs property

    Unsolved
    1
    0 Votes
    1 Posts
    47 Views
    No one has replied
  • How to QML remote debugging in Windows OS?

    Unsolved
    2
    0 Votes
    2 Posts
    48 Views
    B
    I'm not sure if there is something like remote debugging for QML. Some thoughts: If you want to get current states of a QML application and check layouts at runtime etc. have a look at GammaRay. This tool allows you to examine and manipulate the internals of Qt applications at runtime, augmenting conventional debuggers by understanding the implementation of Qt. If you want to run tests and access your QML application you could check out SPIX, a testing framework. Spix is a minimally invasive UI testing library that enables your Qt/QML app's UI to be controlled either via c++ code, or through an http RPC interface.
  • 0 Votes
    1 Posts
    35 Views
    No one has replied
  • Does QML support native look-and-feel on Windows?

    Solved
    18
    1 Votes
    18 Posts
    4k Views
    JKSHJ
    @RokeJulianLockhart said in Does QML support native look-and-feel on Windows?: @JKSH, as aforestated, my environment isn't primarily Windows, so a pre-defined WinUI2/3-equivalent QQuickStyle is assistive, but not sufficiently comprehensive if I want to utilise QML. Ah, I missed that. This thread is about native look-and-feel on Windows so I answered in that context. OK, Qt Quick Controls also has native styles for macOS, iOS, and Android. (There's no such thing as a "native" style for Linux) My suggestion? Give Qt Quick a test run with a simple test project. Decide whether to use it or not based on how it helps you get things done, not just what styles are available. Other note: The graphics technology is called Qt Quick. The primary language is QML, but you can still use C++ to implement some Qt Quick classes if you wish. is all the information I see online about QtWidgets being deprecated in QML's favour (which KDE's push for Kirigami appears to mimic) because that was once true, but isn't anymore? Well, Qt Widgets was never deprecated in the first place. My guess is that people saw that each new release brought big improvements to Qt Quick but didn't bring big improvements to Qt Widgets, and concluded that widgets are being dumped. What they forgot was this: Widgets were a mature, 20-year-old technology that works well and is relied on by many, so there's no room for fancy revolutionary changes. Qt Quick was a new young technology, wet around the ears, with lots of room for growth. That's why the growth spurts seem so dramatic. However, I'm glad to hear that QtWidgets are in active development. I'm not sure I'd use the term "active development" though. It's being maintained, bugs are fixed, and it's kept working smoothly with new versions of OS'es, but there's no revolution happening.
  • How to do SOUP Validation for QML, QtQuick, QtQuickControls

    Unsolved
    2
    1 Votes
    2 Posts
    47 Views
    Christian EhrlicherC
    You should ask the Qt support for help. They already did such kind of things and are for sure the better place to ask such questions.
  • ListView inside PathView = broken touchscreen scrolling

    Solved touch screen pathview listview
    3
    0 Votes
    3 Posts
    127 Views
    H
    I was afraid I would have to resort to hacks like this... Okay, I will try. Thank you.
  • TreeViewDelegate Unable to assign QJSValue to QString

    Solved
    2
    0 Votes
    2 Posts
    50 Views
    M
    TreeViewDelegate use model.display This help me contentItem: Item{}
  • Implementing something like the Qt Creator examples page in QML

    Solved
    5
    0 Votes
    5 Posts
    128 Views
    GrecKoG
    simplified code: Image { id: exampleImage source: "example.jpg" anchors.fill: parent smooth: true } Text { text: "This is an example description." color: "white" anchors.fill: parent font.pixelSize: 16 wrapMode: Text.Wrap horizontalAlignment: Text.AlignHCenter | Text.AlignVCenter HoverHandler { id: textHoverHandler } opacity: textHoverHandler.hovered ? 1 : 0 Behavior on opacity { NumberAnimation { duration: 300 easing.type: Easing.InOutQuad } } }
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    36 Views