Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • IconImage and ColorImage current state

    Unsolved
    2
    0 Votes
    2 Posts
    247 Views
    B
    I would be interested in this too. I happened across ColourImage in some Qt source the other day and thought it looked useful before realising that it's internal. This was in 6.8. I am porting some Qt5 code at the moment and was trying to figure out how to colour an svg. I used to use GraphicalEffects and the compatibility library isn't available with the in-house Qt build I have to use. Meanwhile MultiEffect, which I understood to be the Qt 6 replacement, doesn't appear to work, with no clues provided as to why not.
  • Qt 6 TreeView and selection

    Solved
    6
    0 Votes
    6 Posts
    634 Views
    B
    @GrecKo Thanks for the tip. In the Qt 5 tree view, the index was provided directly to the delegate but I see that it has to be derived from the row and column that are provided to the delegate in Qt 6. So I need to make sure I use the provided index() method on the tree to do this, rather than going directly to the model.
  • Name 'target' in QML Connections confusing

    Unsolved
    2
    0 Votes
    2 Posts
    236 Views
    J.HilkJ
    My professional guess is that Connections is specifically designed to reference a QtObject or null, ensuring type safety and clarity in signal connections. Source is a more generic term in QML, commonly used for properties like Image.source or Component.source, which refer to the data or component being displayed or instantiated.
  • Qt 6: Dialog confusion

    Solved
    3
    0 Votes
    3 Posts
    379 Views
    JKSHJ
    Confusing indeed: https://bugreports.qt.io/browse/QTBUG-130864
  • Backface Culling with Runtimeloader - QtQuick3D / QML

    Solved qtquick3d qml
    3
    1 Votes
    3 Posts
    481 Views
    J
    This did it - thank you so much, I've been trying to figure this out forever.
  • QML MapView

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • 0 Votes
    2 Posts
    252 Views
    No one has replied
  • AnimatedSprite not run while implemented on a View3D Node?

    Unsolved
    4
    0 Votes
    4 Posts
    484 Views
    SGaistS
    Hi and welcome to devnet, While I understand the lock you are into, testing with a more recent version can help you check whether what you actually have is working. Two possible outcomes: it does and you can try to back port the changes needed it does not and you have to check if it's an issue (and possibly fill a new ticket about it)
  • Qt Multimedia QAbstractVideoFilter Missing in Qt 6.9

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    SGaistS
    So what did you had to do with your code to make it work ?
  • How to detect if right button was pressed in MultiPointTouchArea ?

    Unsolved
    2
    0 Votes
    2 Posts
    249 Views
    D
    I found the solution, shortly after having posted : I was missing acceptedButtons: Qt.AllButtons
  • Web Assembly test app not opening in html window

    Unsolved
    1
    0 Votes
    1 Posts
    136 Views
    No one has replied
  • Somethings about 'QtQuickView' and 'QtQuickViewContent'

    Unsolved
    1
    0 Votes
    1 Posts
    147 Views
    No one has replied
  • windows title bar native

    Unsolved
    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • Why radius no effect when clip: true for Rectangle

    Unsolved
    4
    0 Votes
    4 Posts
    513 Views
    R
    Thank you Vitalii777 and SuhasKrishanamurthy for your help. Much appreciated! The code above working good.
  • Correct way to make QML modules Qt 6.5-6.9

    Solved
    18
    1 Votes
    18 Posts
    2k Views
    D
    @JKSH Thanks for the answers!
  • When to register c++ singleton types in QML module plugins?

    Unsolved qml module plugin singleton c++
    3
    0 Votes
    3 Posts
    981 Views
    JKSHJ
    @Dika The solution is to: Register your class using QML_SINGLETON Do not call qmlRegisterSingletonType<>() If you don't have (or don't want) a default constructor, implement a static member function called create() to act as a factory. See https://doc.qt.io/qt-6/qqmlintegration-h-qtqml-proxy.html#QML_SINGLETON for an example
  • module "QtQuick.Controls" version 1.4 is not installed

    Unsolved
    5
    0 Votes
    5 Posts
    577 Views
    W
    It looks like it won't be possible to rebuild the old project without migrating the code to Qt 6...(
  • Feedback needed: QML is this the right way to link other QML Files?

    Unsolved qml c++ feedback cmake
    10
    0 Votes
    10 Posts
    1k Views
    JKSHJ
    @StudentScripter said in Feedback needed: QML is this the right way to link other QML Files?: removing RESOURCE_PREFIX / is no problem, works still fine, thanks. :D Good to hear, that's what I expected :) There were some changes in Qt 6.5 to make things easier, so you should no longer need to specify RESOURCE_PREFIX unless you want some unconventional structure (which is not recommended) However do you mean changing all mymodules mentions to mymodulesplugin or only this one? I meant only one: target_link_libraries(appQmlLibraryTest PRIVATE Qt6::Quick mymodulesplugin # <-- Like this ) Cause when changing only one it gives me errors. Can you please share the full error message? Without it, it makes it hard to troubleshoot for you. @StudentScripter said in Feedback needed: QML is this the right way to link other QML Files?: Also another question what to do if i wanted to add another subfolder inside my mymodules/ directory? Lets say: mymodules/extras You could create a new QML module (in mymodules/extras/CMakeLists.txt)
  • [Linux] How to enable sub-pixel rendering for Qt Quick/QML 6.5.3?

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • Qt6 color SVG using MultiEffect

    Solved
    14
    0 Votes
    14 Posts
    4k Views
    N
    @MattP2 I don't see how this works. Depending on your input/original color you will get a different gray value in the computation: color.rgb += brightness * color.a; float gray = dot(color.rgb, vec3(0.299, 0.587, 0.114)); Then this gray value will affect to colorizationColor in: color.rgb = mix(color.rgb, gray * colorizationColor.rgb, colorizationAlpha); So even if colorizationAlpha is 1.0, the gray affects the output. It would work, if color was clamped to (1,1,1) after applyiing the brightness, but that doesn't seem to happen. I always get my colorizationColor scaled in the result, even with brightness: 1.