Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Qt Creator: qml.qrc with different prefix, problem in design editor

    Unsolved
    1
    0 Votes
    1 Posts
    209 Views
    No one has replied
  • QList as qml model

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    raven-worxR
    @Cyrille-de-Brebisson Q_PROPERTY(QList<MyObj*> liste READ getliste NOTIFY listeChanged) now emit the listeChanged signal everytime you change the list If you would implement a QAbstractListModel subclass you would have more control of rearrangements etc.
  • 0 Votes
    4 Posts
    1k Views
    raven-worxR
    @Tee_ normally a pro file results in a separate target (executable or library). Even if you "combine" them with a subdirs project. So your AppUi project must link against the AppLib
  • GTK style File Explorer on Windows OS

    Unsolved
    1
    0 Votes
    1 Posts
    192 Views
    No one has replied
  • ChartView/ValueAxis - How to NOT label the maximum value tick on the ValueAxis

    Unsolved
    4
    0 Votes
    4 Posts
    325 Views
    fcarneyF
    You could draw a line on top. Not ideal. Edit: Width of 1 rect with border.
  • Conditional Import

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    raven-worxR
    @caicx said in Conditional Import: import QtGraphicalEffects 1.0 // Required by Qt 5.x.x vs import Qt5Compat.GraphicalEffects // Required by Qt 6.x.x yes and? Since the major version of Qt has changed you should also advance with your project, instead of importing a compat module of a previous version for the whole lifespan of Qt 6. The compat module is intended to be used as a quick solution until the porting of your application to Qt6 has finished
  • Key press events are not handled in e.g. Qml TextField but eventFilter receives it

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • How to identify the Qt libraries are built with open source or commercial licenses

    Solved
    3
    0 Votes
    3 Posts
    434 Views
    P
    @jsulm - Thank You
  • Can't use QtQuick.Controls

    Unsolved
    3
    0 Votes
    3 Posts
    378 Views
    W
    @J-Hilk No, I haven't considered it because it has been working fine until now. Sorry, I made a mistake, it's "5.15.2" to be exact. I created a new project with the exact same settings and the exact same code, and it worked. Was there a problem with the settings that I missed somewhere?
  • Cant refresh QML item only after using it.

    Unsolved
    3
    0 Votes
    3 Posts
    333 Views
    B
    Didnt know about breaking bindings yet and I feel like I dont understand the code onActivated well. What does => means / how it's named? Currently the custom item is defined like this: LeftBind { id: enabler x: 291 y: 15 keyName: keyTranslator.getKey(Config.enabler) //Config.enabler is vkey (int), this function converts it to readable string (for example from c++ vkey 0x10 to "ALT") onAccepted: { var a = keyTranslator.getCode(keyName); // from string to vkey if(a === 404){ askForKey() } else { Config.set_enablerBtn(a) } } }
  • Scenegraph with OpenGL : Unwanted rendering

    Unsolved scengraph vtk opengl qquickwindow synchronization
    6
    0 Votes
    6 Posts
    940 Views
    J
    @JoeCFD I was working on other stuffs but now I remember why I can't override QQuickItem update() method... it is a non-virtual slot, so it can't solve my rendering issues. I am still looking for a solution ...
  • 0 Votes
    2 Posts
    959 Views
    A
    @jeanmilost Your logic seems to be correct. What you have to do is to move the re-calculation of Scrollbar size & position to the Rectangle rcPageContainer because you are applying scale for that. Rectangle { id: rcPageContainer objectName: "rcPageContainer" ... /// called when page viewport width changed onWidthChanged: { sbHorz.size = rcPageViewport.width / rcPageContainer.width sbHorz.position = Math.min(Math.max(sbHorz.position, 0.0), 1.0 - (sbHorz.size)); } /// called when page viewport height changed onHeightChanged: { sbVert.size = rcPageViewport.height / rcPageContainer.height sbVert.position = Math.min(Math.max(sbVert.position, 0.0), 1.0 - (sbVert.size)); } }
  • 0 Votes
    1 Posts
    276 Views
    No one has replied
  • Import says QML module not found.

    Unsolved
    11
    0 Votes
    11 Posts
    4k Views
    R
    Okay. Thanks. I would have tried to use the QML2 path!
  • Customiza ComboBox in QML

    Solved
    8
    0 Votes
    8 Posts
    770 Views
    ?
    It's work. Thanks Result [image: Screenshot_20211128_143000.jpg]
  • Memory leak bug with Qt Quick (QT 6.2.1)

    Unsolved
    5
    0 Votes
    5 Posts
    705 Views
    M
    Thanks for the tip on Stackoverflow, I can see that QT6Guid is Allocating that memory but never releases it. Also there is Unresolved Allocation which I don't know what it is. The test was : Set the window to minimum size Take Memory Snapshot Resize the window by dragging the mouse multiple time Take a Memory Snapshot Repeat One more time Anybody have a clue on what's happening? Unresolved Allocation Qt6Guid.dll!QGles2GraphicsPipeline [image: 858fb3b1-d888-439c-923a-c05dec1c9fcb.png]
  • Qt6.2 TableView and ItemSelectionModel - Row / Column Selection Modes?

    Unsolved
    1
    0 Votes
    1 Posts
    188 Views
    No one has replied
  • coverage using TUG for qt 5.15

    Unsolved
    2
    0 Votes
    2 Posts
    257 Views
    K
    The following link provides the information about Qt /QML application coverage analysis and looking for any similar Plugins from forum. Hoping to hear soon. https://forum.qt.io/topic/61133/tug-framework-open-source-gui-unit-testing-for-qt-applications
  • Cannot choose QtQuick version in Ubuntu

    Unsolved
    1
    0 Votes
    1 Posts
    755 Views
    No one has replied
  • animation does not work as excepted in qml

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    No one has replied