Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.2k Topics 77.9k Posts
  • Impicit import 'QtQml' of QML module 'QtQuick' not found

    Unsolved
    4
    1 Votes
    4 Posts
    1k Views
    V
    @fixgoats said in Impicit import 'QtQml' of QML module 'QtQuick' not found: @sable I was having a similar issue on Ubuntu as well. I needed to install qml6-module-qtqml and that fixed the warning. Which is odd because the base project compiled just fine before then. Install this package solved it for me (Qt 6.4.2 in Ubuntu 24.04). Thank you!
  • Absence of "QmlHelper" variable on a panel PC

    Unsolved
    2
    0 Votes
    2 Posts
    27 Views
    JKSHJ
    Hi @erenguness, and welcome! I don't recognize QmlHelper or that dialog box. They look like custom components, rather than built-in Qt components. So, please contact the author(s) of your "terminalQML" tool for further help.
  • ML Window/Item Resize Bug: Anchors/Layout not adjusting correctly on window resize

    Unsolved
    6
    0 Votes
    6 Posts
    120 Views
    SGaistS
    What kind of graphics card do you have ?
  • What's wrong with alignment?

    Solved
    12
    1 Votes
    12 Posts
    2k Views
    C
    For the Layout.fillWidth: true approach to work, we need to add: Layout.maximumWidth: Number.POSITIVE_INFINITY to the nested RowLayout (credit to this post).
  • 0 Votes
    1 Posts
    20 Views
    No one has replied
  • TabBar implicit width and height within a layout?

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
    No one has replied
  • QML Repeater with Qt Graphs Invalid Y Values

    Unsolved qabstractmodel qml c++ qml qt graphs repeater
    2
    0 Votes
    2 Posts
    103 Views
    A
    Repeater cannot be used to add LineSeries to a GraphsView. LineSeries is not a visual Item (not a QML Item), and GraphsView does not process its QML children. As a result, series created by Repeater are either never instantiated correctly or never registered with the graph. The correct solution is to use Instantiator and explicitly call GraphsView.addSeries(). Instantiator is intended for exactly this case: creating non-visual objects and manually attaching them. Your code below is the correct and supported approach: import QtQuick import QtQuick.Controls.Basic import QtQuick.Controls 6.5 import QtGraphs import Qt.labs.qmlmodels Item { id: processPlot property var model: TableModel { id: seriesModel TableModelColumn { display: "time" } TableModelColumn { display: "raw_pressure" } TableModelColumn { display: "filtered_pressure" } TableModelColumn { display: "raw_position" } TableModelColumn { display: "filtered_position" } TableModelColumn { display: "raw_speed" } TableModelColumn { display: "filtered_speed" } rows: [ { time: 0, raw_pressure: 0, filtered_pressure: 0, raw_position: 240000, filtered_position: 240000, raw_speed: 0, filtered_speed: 0, }, { time: 10, raw_pressure: 5, filtered_pressure: 4, raw_position: 240400, filtered_position: 240400, raw_speed: 20, filtered_speed: 18, }, { time: 20, raw_pressure: 10, filtered_pressure: 9, raw_position: 241000, filtered_position: 241000, raw_speed: 20, filtered_speed: 19, } ] } GraphsView { id: graphsView anchors.fill: parent axisX: ValueAxis { max: 100 } axisY: ValueAxis {} } Instantiator { model: 6 Component.onCompleted: { console.log("Repeater completed"); } delegate: LineSeries { id: series Component.onCompleted: { console.log("Repeated item completed"); graphsView.addSeries(series); } XYModelMapper { model: processPlot.model series: series xSection: 0 ySection: index + 1 } Component.onDestruction: graphsView.removeSeries(series) } } }
  • 1 Votes
    2 Posts
    65 Views
    A
    Small development, it seems that minimising the window then resizing will permanently remove the white box, could this be some kind of cache or graphics buffer which is cleared when the window is out of view? Setting visible on the window doesn't fix the box See video for new behaviour: https://youtu.be/PvS2mmGbysc
  • TextInput does not hide the Chinese input method when it loses focus

    Unsolved
    4
    0 Votes
    4 Posts
    75 Views
    SGaistS
    You should try with a current version of Qt. IIRC it's 6.10.1 at the time of writing.
  • QML layout glitch when updating a letter grid?

    Unsolved
    2
    0 Votes
    2 Posts
    72 Views
    JKSHJ
    @helios831 There should not be any flicker. If you'd like us to help you troubleshoot, please show your code that contains the flicker.
  • QML MediaPlayer how change AudioOutput automatically

    Unsolved
    6
    0 Votes
    6 Posts
    96 Views
    SGaistS
    Yes but not necessarily 6.10.0
  • [QML] Failed to extract plugin meta data from '/path-to-module/MyCustomTheme.dll'

    Solved
    2
    0 Votes
    2 Posts
    44 Views
    N
    Here I report also the solution: adding the following lines to CMakeLists.txt qt_add_qml_module(MyTheme ... same code as before ... ... ) if (TARGET MyThemeplugin) target_sources(MD3Themeplugin PRIVATE MyThemePlugin.hpp) endif()
  • 0 Votes
    1 Posts
    54 Views
    No one has replied
  • 0 Votes
    2 Posts
    76 Views
    cristian-adamC
    @Hruthik-T-M I've reported this to LLVM that they should ship the CMake files needed to consume the libraries, and they closed it as won't do. You can use Qt's LLVM prebuilt libraries at https://download.qt.io/development_releases/prebuilt/libclang/qt/ You get also the MinGW build of LLVM.
  • Thank you Qt for quietly fixing a bug in MonthGrid and ruining everything ;-)

    Unsolved
    2
    0 Votes
    2 Posts
    68 Views
    D
    My current workaround, lol: onClicked: function(getDate) { if(getDate.getHours() > 0) { myDate = new Date(getDate.getFullYear(), getDate.getMonth(), getDate.getDate() +1); } else { myDate = getDate }
  • 0 Votes
    3 Posts
    53 Views
    M
    It fix my bug OpacityMask // Actual masked image { id: opacityMask visible: image.source != ""
  • 1 Votes
    2 Posts
    82 Views
    SGaistS
    Hi, There's two things you can do to make that happen: check the bug report system to see if there's already something about this issue (and if not please create a ticket) submit a patch since you already have the solution at hand :-)
  • 0 Votes
    1 Posts
    58 Views
    No one has replied
  • 0 Votes
    1 Posts
    64 Views
    No one has replied
  • Using stackview with qrc

    Solved
    5
    0 Votes
    5 Posts
    165 Views
    EwaldVDME
    Thank you! I got rid of the .qrc file: https://forum.qt.io/topic/145308/qt-6-5-qml-in-qrc-vs-qt_add_qml_module-what-is-better/3 CMakeLists.txt: set_source_files_properties(qml/MyApp/Main.qml PROPERTIES QT_RESOURCE_ALIAS "Main.qml") set_source_files_properties(qml/MyApp/pages/LoginPage.qml PROPERTIES QT_RESOURCE_ALIAS "pages/LoginPage.qml") qt_add_qml_module(appultiphone URI MyApp VERSION 1.0 RESOURCE_PREFIX "/" QML_FILES qml/MyApp/Main.qml qml/MyApp/pages/LoginPage.qml RESOURCES assets/fonts/Fredoka/Fredoka-Regular.ttf assets/icons/logo.png ) StackView { id: stack anchors.fill: parent initialItem: "qrc:/MyApp/pages/LoginPage.qml" <-------------- } So, as I understand it, we specify the URI MyApp (Which gets loaded in main.cpp as a module) and then append the alias you give it in the set_source_file_properties()