Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Qt Create Qquickwindow with Qquickrendercontrol in another thread

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • Problem in handling parallel states in Qt/Qml

    Solved
    4
    0 Votes
    4 Posts
    579 Views
    GrecKoG
    Or don't use states at all. import QtQuick 2.0 import QtQuickUltralite.Extras 2.0 Item { id: signal property bool show: false property bool showtwo: false Rectangle{ id: rect1; width: 50; height: 50; color: "green"; visible: !signal.show } Rectangle{ id: rect2; y:100; width: 50; height: 50; color: "red"; visible: signal.show } Rectangle{ id: rect3; x:100; width: 50; height: 50; color: "yellow"; visible: !signal.showtwo } Rectangle{ id: rect4; x:100; y:100; width: 50; height: 50; color: "black"; visible: signal.showtwo } Timer { running: true; repeat: true; interval: 1000 onTriggered: { console.log(signal.show); signal.show = !signal.show; signal.showtwo = !signal.showtwo; } } }
  • Future of QtLocation?

    Solved
    3
    0 Votes
    3 Posts
    292 Views
    M
    Thank you, good to know.
  • Is it possible to load QtCharts library with only QML without Qt/C++?

    Unsolved
    7
    0 Votes
    7 Posts
    827 Views
    piervalliP
    @fcarney We can write a core where you can espose all method to Qml. In this way UI can be adapted many screen without change the core.
  • how to recall a destroyed element in Qml?

    Unsolved
    3
    0 Votes
    3 Posts
    460 Views
    JoeCFDJ
    @fcarney https://doc.qt.io/qt-6/qtqml-javascript-dynamicobjectcreation.html destroy() does exist. I would use loader to recreate treebuttonUnmappedIn when it is recalled.
  • QQuickWindow::createTextureFromImage cant generate QSGTexture with mipmap

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • QML_INTERFACE example

    Unsolved
    3
    2 Votes
    3 Posts
    820 Views
    JarrodJ
    @GrecKo said in QML_INTERFACE example: A QML_INTERFACE should not inherit from QObject Hi @GrecKo how did you determine this, can you point to some docs for further reading? I'm also confused by how these macros should be used correctly and in which circumstances. In my case I have a class A with some functions that are pure virtual. Subclasses of this are registered via qmlRegisterType(). I have another base class B with sub classes that are also registered. B has a property of type A.
  • How to use View3D.rayPick on QtQuick3D

    Unsolved
    1
    0 Votes
    1 Posts
    139 Views
    No one has replied
  • Dynamically add tabs - declarative approach?

    Solved
    4
    0 Votes
    4 Posts
    500 Views
    fcarneyF
    Models in QML depend upon notification. This will update when changing things in the model because it has notification signals: ListModel { id: lmodel } Repeater { model:lmodel } This will not if you try and modify vmodel elements (unless the change causes the vmodel variable itself to change): property var vmodel: [1,2,3] Repeater { model: vmodel } So code like vmodel.push(4) won't provide signals to change for the repeater to see.
  • How to send keyboard input under wayland?

    Unsolved
    1
    0 Votes
    1 Posts
    248 Views
    No one has replied
  • best way to remember informations about opened files

    Unsolved
    9
    0 Votes
    9 Posts
    709 Views
    JonBJ
    @jsulm said in best way to remember informations about opened files: calculate hashes from the content of both files using https://doc.qt.io/qt-5/qcryptographichash.html @tubbadu I don't believe you need any kind of cryptographic hash for your purpose of hash-content-for-compare. I believe Qt gives you an adequate implementation for your purpose in e.g. uint qHash(const QByteArray &key, uint seed = 0).
  • How does the Window's Flag "Qt::Desktop"works?

    Unsolved
    1
    0 Votes
    1 Posts
    200 Views
    No one has replied
  • Ubuntu 16.04: Unknown module(s) in QT: quickcontrols2

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    D
    I know for a fact that it is possible to have QtQuick.Controls 2 if Qt is built from source I was looking for a simpler way to install Qt (apt-get) and run a project of my own but if quickcontrols2 doesn't allow it, I'll just have to continue with the online installer option Thank you both, I'll close the topic if there isn't anything to add
  • [BUG?] Dangerous behaviour of FolderListModel when the folder specified is invalid

    Unsolved
    5
    0 Votes
    5 Posts
    493 Views
    T
    I'll try, thanks!
  • Animations on Treeview indicators not working correctly

    Unsolved qml qt6
    1
    0 Votes
    1 Posts
    218 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • module "QtQuick" version 2.12 is not installed

    Unsolved
    8
    0 Votes
    8 Posts
    720 Views
    A
    @J-Hilk By groping I found that the QtQuick I need to use with my setup was 2.3, but thanks for explain me the difference between versions
  • Module QtQuick 2.14 is not installed

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    jsulmJ
    @aim0d On what OS? You can download installer from here: https://download.qt.io/archive/qt/5.14/
  • 0 Votes
    10 Posts
    2k Views
    J
    For the purpouse of people who might search for an find this forum post, I put in a request with QT support and received the following. Hi Joe, Thank you for contacting Qt Support and for providing your sample project. There are 2 broad ways to specify the fragmentShader property, depending on which version of Qt you want to target: The Qt 5 way is to specify the shader's source code as a string. The Qt 6 way is to pre-compile your shader source code into a .qsb file, and specify a URL to that .qsb file See: https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html#fragmentShader-prop https://doc.qt.io/qt-6/qml-qtquick-shadereffect.html#fragmentShader-prop To do it the Qt 5 way, the easiest approach is to copy the contents of your .frag file and paste it as a string literal (surrounded by quotation marks) to the RHS of the "fragmentShader" property. To do it the Qt 6 way, run the QSB tool to compile your shader source code. Unfortunately, the code of colour_wheel.frag is too old to be supported by QSB (for example, the "varying" keyword was deprecated long ago, and even removed for ES profiles) See: https://doc.qt.io/qt-6/qtshadertools-overview.html https://doc.qt.io/qt-6/qtshadertools-qsb.html I hope this helps.
  • QtLocation: MouseArea stop Updating even if hoverEnabled is true.

    Unsolved
    1
    0 Votes
    1 Posts
    158 Views
    No one has replied