Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • Can't use QtQuick.Controls

    Unsolved
    3
    0 Votes
    3 Posts
    395 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
    345 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
    1k 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
    1k 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
    294 Views
    No one has replied
  • Import says QML module not found.

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

    Solved
    8
    0 Votes
    8 Posts
    787 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
    730 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
    199 Views
    No one has replied
  • coverage using TUG for qt 5.15

    Unsolved
    2
    0 Votes
    2 Posts
    266 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
    764 Views
    No one has replied
  • animation does not work as excepted in qml

    Unsolved
    2
    0 Votes
    2 Posts
    288 Views
    No one has replied
  • Dynamic component makes multiple components !!! in qml

    Solved
    3
    0 Votes
    3 Posts
    370 Views
    Q
    @GrecKo thank you for your answer. actually i did'nt know this way to make my component dinamically. i learned this thing about binding and now i know. thanks
  • Optional Javascript engine in Qt 6.1 / 6.2 - ETA?

    Unsolved
    4
    0 Votes
    4 Posts
    464 Views
    sierdzioS
    It is not available in 6.2. I don't know what the plans are, sorry. Maybe ask on qt-devel mailing list?
  • Qt quick width HorizontalHeaderView

    Unsolved
    2
    0 Votes
    2 Posts
    392 Views
    Y
    I have the same problem too, have you solved it? Still exists in Qt6.2.1
  • 0 Votes
    3 Posts
    423 Views
    V
    Issue was the name used when setting the font. Should not be using, "Liberation", but "LiberationSans". That being the case, it was also not necessary to set the style to SansSerif, as that was the only style available for the "LiberationSans" font.
  • Application Portrait and Landscape mode (Horizontal/Vertical rotation)

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    SebastianMS
    I didn't add anchors.centerIn: parent in content Item (which is rotated and is changing size). In result, after rotation Item was placed in completely crazy place.
  • Qt Creator complains Unknown component M300 for items from library

    Solved
    2
    0 Votes
    2 Posts
    928 Views
    SebastianMS
    When I moved whole content of components to Module. Added qmldir and explicitly enumerate all files inside. After that set(QML_IMPORT_PATH ${CMAKE_CURRENT_LIST_DIR}/qml ${CMAKE_SOURCE_DIR}/common CACHE STRING "" FORCE) was enough for Qt Creator to find missing or unknown components.
  • Qt6.2 TableView SelectionModel / Rectangle selection not working

    Solved
    3
    0 Votes
    3 Posts
    787 Views
    denishessbergerD
    Thanks! Would be great if the example itself would also contain either interactive: false or the selectionMode.
  • Lots of TypeErrors in console when migrating to Qt6

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    TassosT
    I am facing the same issue. It seems that the macOS style is broken. The workaround to get rid of these warnings is to force the Basic style via: QQuickStyle::setStyle("Basic");