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
  • Qml video metaData returns undefined values

    Unsolved
    2
    0 Votes
    2 Posts
    257 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
    61 Views
    No one has replied
  • Custom TitleBar

    Unsolved custom titlebar framelesswindow frameless bar titlebar
    4
    0 Votes
    4 Posts
    307 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
    132 Views
    MarkkyboyM
    Wow!, people still using LinkedIn after the latest data breach, crazy times.
  • Qt workflow issues: static positioning instead of layouts / anchors

    Unsolved
    3
    1 Votes
    3 Posts
    172 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
    149 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
    167 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
    151 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
    514 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
    982 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
    164 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
    88 Views
    No one has replied
  • VirtualKeyboard errors Qt 6.8.3

    Solved virtualkeyboard qml input panel
    3
    0 Votes
    3 Posts
    852 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
    233 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
    308 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
    155 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
  • How to fix table column width is resetting/overlapping when the table is scrolled

    Unsolved
    2
    0 Votes
    2 Posts
    161 Views
    B
    I haven't used TableView in Qt 6 but I wonder whether your use of RowLayout in your delegate is necessary. Not saying it is causing the issue but it might be worth simplifying your implementation by removing it and debugging from there.
  • How do I switch the FluentWinUI3 style to Dark theme?

    Unsolved
    2
    0 Votes
    2 Posts
    164 Views
    A
    I think it follows your system theme because on my system it uses the dark theme already
  • CMake and importing QML files

    Unsolved
    2
    0 Votes
    2 Posts
    173 Views
    B
    I believe globbing is supported by CMake but that it is generally recommended not to use it. As a CMake newbie myself I have followed what seemed to be the prevailing wisdom and stuck to hard coded lists. One compromise that I did come across was to read the file list from an external file, e.g., file(STRINGS "sources_list.txt" MYSRCS) and then use the MYSRCS variable as your file list in CMake commands (e.g., add_executable(my_app ${MYSRCS})). This would mean maintaining the "sources_list.txt" file externally but that would be easy to automate. I haven't actually tried this though so take all this with a pinch of salt.
  • Errors not in english

    Unsolved
    3
    0 Votes
    3 Posts
    222 Views
    0
    Oh, so the issue has to do with Microsoft. Thank you for your help J.Hilk!