Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.2k Topics 78.2k Posts
Qt 6.11 is out! See what's new in the release blog
  • Qt Quick2

    Solved
    7
    0 Votes
    7 Posts
    164 Views
    Z
    @Christian-Ehrlicher Thank you all for your support and assistance. Eventually, I discovered the solution. Originally, it was necessary to add the resource files in the "qt_add_executable" section of the CMakeList file, and set CMAKE_AUTORCC to ON. Although the images couldn't be seen in the QML Designer of Qt Creator, they were displayed perfectly on the Android emulator.
  • Qt6.2.4 Text Cursor Display Issue

    Unsolved
    1
    0 Votes
    1 Posts
    41 Views
    No one has replied
  • Call function from ancestor. How?

    Unsolved
    1
    0 Votes
    1 Posts
    50 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Qml video metaData returns undefined values

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    G
    Hello, Though it's a later response, you can try: console.log(video.metaData.value(key)). The key is a fixed number which indicates the metaData keys,like: video.metaData.value(0) //title video.metaData.value(0) //duration etc. When you load a media, the keys will be in array but in random order, you can run console.log(video.metaData.keys()) to get the keys first. I'm not a programmer, so I'm not so surre about if it's the best way to read the MetaData, but it works on Qt6.10
  • Custom TextArea with visible text outside. How?

    Unsolved
    1
    0 Votes
    1 Posts
    82 Views
    No one has replied
  • Custom TitleBar

    Unsolved custom titlebar framelesswindow frameless bar titlebar
    4
    0 Votes
    4 Posts
    322 Views
    C
    https://github.com/stdware/qwindowkit This is currently the best frameless window lib. It is cross-platform and supports both QWidget and QQuick.
  • 0 Votes
    3 Posts
    158 Views
    SGaistS
    Hi and welcome to devnet, From a quick check, they look pretty neat ! One thing that I would suggest is to translate the comment in the code to English. You'll will reach a wider audience that way.
  • Qt workflow issues: static positioning instead of layouts / anchors

    Unsolved
    3
    1 Votes
    3 Posts
    183 Views
    KH-219DesignK
    I do software consulting on various projects, and I personally have written QML by hand while "copying" (the look) from a given Figma project that was handed off to me. I have never used the Figma Qt plugin. FWIW, I have had two different UX designers (experts at Figma) on two different projects comment to me that they gave up on trying to use the Figma Qt plugin (and hence they reverted to writing the QML by hand). Nonetheless, I am now subscribed to this thread because I, too, would love to hear anyone's positive experience or any expert tips that could make it worthwhile to use the plugin.
  • qmlls auto complete

    Unsolved
    2
    0 Votes
    2 Posts
    153 Views
    JKSHJ
    @Redman My guess is that qmlls can't find the registration details for your "baseclass". Can you provide a reproducer?
  • Improving 3D Robot Visualization in Qt Quick 3D – Should I Use OCCT?

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    J
    I'm not exactly sure what visuals you are going for, but to get it looking like in the picture you might want to look into using a CustomMaterial with cel shading.
  • 0 Votes
    2 Posts
    161 Views
    J
    There are two main ways of loading meshes in QQ3D, either using balsam https://doc.qt.io/qt-6/qtquick3d-tool-balsam.html or using RuntimeLoader https://doc.qt.io/qt-6/qml-qtquick3d-assetutils-runtimeloader.html. You can also create a custom geometry loader https://doc.qt.io/qt-6/qquick3dgeometry.html but this only provides geometry and not materials or textures.
  • Setting up QML module dependencies with qt_add_qml_module()´s DEPENDENCIES TARGET

    Solved
    7
    2 Votes
    7 Posts
    533 Views
    K
    Finally got the time to finish up the repo collecting the different QML module linking options. Maybe it will help others in the future: https://github.com/KGergo88/QtQMLModuleExamples
  • How to customize the attached ToolTip?

    Unsolved tooltip
    4
    0 Votes
    4 Posts
    997 Views
    GrecKoG
    @JKSH said in How to customize the attached ToolTip?: The workaround is to call QQuickStyle::setStyle("MyStyle"); in C++ before initializing the QML engine. And if you have a custom style not entirely compliant with Qt Quick Controls or you don't want to switch all your controls, you can hack it by setting the _q_QQuickToolTip (and _q_shared_QQuickToolTip) property of your QQmlEngine to an instance of your ToolTip before loading your QML files (no guarantee it works in future versions). As mentioned in https://qt-project.atlassian.net/browse/QTBUG-107684
  • qml javascript function parameter typing

    Solved
    2
    0 Votes
    2 Posts
    170 Views
    JKSHJ
    @poncho524 said in qml javascript function parameter typing: is there anywhere in the docs that explain when specifying type became acceptable? i can't find it. Not the docs, but this blog post says it was introduced in Qt 5.14: https://www.qt.io/blog/compiling-qml-to-c-annotating-javascript-functions https://www.qt.io/blog/compiling-qml-to-c-annotating-javascript-functions Not that I know of
  • HorizontalHeaderViewDelegate overflows cells

    Unsolved
    1
    0 Votes
    1 Posts
    92 Views
    No one has replied
  • VirtualKeyboard errors Qt 6.8.3

    Solved virtualkeyboard qml input panel
    3
    0 Votes
    3 Posts
    865 Views
    D
    Fixed it by checking system environment variables, be careful about old QML_IMPORT_PATH and QT_PLUGIN_PATH
  • QT QML How to chain QAbstractListModel and QSortFilterProxyModel

    Unsolved
    4
    0 Votes
    4 Posts
    246 Views
    jeremy_kJ
    @Zapfyr said in QT QML How to chain QAbstractListModel and QSortFilterProxyModel: Limit the output to X items. This sounds like the job of the view. Provide space to display X items, and omit the ability to navigate further.
  • 0 Votes
    7 Posts
    327 Views
    R
    I did ts_calibrate many times and in ts_test also working only
  • QML and protobuf: Issue with repeated nested message

    Solved
    2
    0 Votes
    2 Posts
    164 Views
    P
    Indeed, this was a bug. More info here, in case anyone else comes across this: https://qt-project.atlassian.net/browse/QTBUG-145124