Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • 0 Votes
    1 Posts
    464 Views
    No one has replied
  • Obtaining reference to dynamically added QQuickItems

    4
    0 Votes
    4 Posts
    1k Views
    S
    Hello Folks; My apologies for the tardiness of my reply. I also apologize for not providing a complete code example. is the graphContainer object - I neglected to rename it in my code snippet. Here's the graphContainer.qml file: @ // QML import QtQuick 2.2 import GraphUI 1.0 Rectangle { anchors.centerIn: parent id: graphContainer objectName: "graphContainer" height:0;width:0 x:0;y:0 /* DEBUG border.color: "green" border.width: 2 */ } @ As to onek24's marvelous suggestion, I've attempted such, but with a small difference: the objectName is programmatically set to a GUID. But I'm coming up empty when I: @ QQuickItem qqEdge = m_GraphContainer->findChild<QQuickItem>(RID); @ The QtCreator debugger shows all children collections to be empty, but my UI displays all edges and nodes correctly. Thank you again, ST
  • Background image for data visualization.

    3
    0 Votes
    3 Posts
    931 Views
    R
    Thanks. Could you be more specific? I have checked this before posting but couldn't find anything helpful. I can play with backgroundColor, backgroundEnabled or windowColor but all I get is different color of background under Bars3D. It looks like I can only change value for glClearColor that is probably called under the hood. I have also tried to play with renderMode property, but if I change it from default value, graph is always under other elements and thus not visible. It seems that if renderMode isn't indirect, graph is always rendered as first element and covered later by other qml elements as rectangles or images. I would like to set graph over Image{} and use this image as a background. Is it possible to do so with Qt5.4?
  • Strange behavior with recursive shaders in threaded renderer loop

    1
    0 Votes
    1 Posts
    690 Views
    No one has replied
  • 0 Votes
    5 Posts
    2k Views
    F
    Thanks to this post I understood why I'm seeing a different slider in my full "fusion" styled application, than in a small QML side project. Thanks!
  • C++ pointer to WebEngineView in QML

    7
    0 Votes
    7 Posts
    4k Views
    W
    True, based on my cryptic rant "not be able to get any feedback", however, what I meant really was viewing the javascript console errors. Thanks for your feedback on this and the other "Debugging" post. I will try the experimental feature and post my results on both threads. I appreciate your help.
  • How to do graph with QML

    12
    0 Votes
    12 Posts
    15k Views
    M
    but this is a bit complex this is a good runable example that help me very much... i hope help you too https://github.com/shuirna/QMLChartJs
  • QML List view as an element of another List view

    2
    0 Votes
    2 Posts
    563 Views
    GianlucaG
    I don't see any issue. The described behavior is what I expect. So, why do you see an issue ?
  • Click button (with focus) bei pressing Enter/Return

    5
    0 Votes
    5 Posts
    5k Views
    K
    Hi again, that should work! But as it is already working with Space just fine, I was hoping that it is possible to just use the same mechanism. If there is no better solution till I find time to work on this again, I might just use your approach to get it working :) Thanks. Cheers, Kieren
  • QQuickWidget leaves a zombie process running

    2
    0 Votes
    2 Posts
    669 Views
    O
    I fixed this by reimplementing closeEvent() of the main window: @void CMainWindow::closeEvent(QCloseEvent *event) { Q_UNUSED(event); setCentralWidget(new QWidget(this)); }@ I'm setting an empty widget as the central widget, so at the time of quitting QQuickWidget is no longer visible. However, I'd still prefer some real solution.
  • QKevEvent to a minimized QQuickWindow

    10
    0 Votes
    10 Posts
    3k Views
    SGaistS
    A moveDown slot is easier to connect to and doesn't depend on the focus stat of your application. You also don't need to fiddle with Qt's sources. On that them you can subclass QAbstractEventDispatcher if you really want to but that's just overkill for the functionality you are seeking.
  • [Solved] Resize all the items within a container proportionally

    4
    0 Votes
    4 Posts
    893 Views
    M
    Hi again. This worked very nicely, however when scaling down the quality is lost. Antialising and smoothing are also set to true. Could we scale down and retain the quality?
  • QtQuick 2 animation performance issue

    6
    0 Votes
    6 Posts
    2k Views
    D
    I've updated my video graphics adapter driver to the most recent version, and now animation is rather smooth, except for some flickering.
  • Looking for a 3D OpenGL example in qml

    7
    0 Votes
    7 Posts
    2k Views
    D
    So please add [SOLVED] to your thread title if the problem is solved so other forum members can quickly see if this thread helped or not.
  • How to set QQuickPaintedItem content offset?

    3
    0 Votes
    3 Posts
    788 Views
    D
    Please add [SOLVED] to your thread title if the problem is solved so other forum members can quickly see if this thread helped or not.
  • Keyboard: 2 dimesional with ListView/TableView?

    4
    0 Votes
    4 Posts
    1k Views
    A
    It can still be a single model! Just add a property to the model that exposes the number of columns to use, and bind the number of columns of your GridView to this property (ok, indirectly via the cellWidth and cellHeight properties).
  • [SOLVED] QTimer remainingTime() always returns 0

    9
    0 Votes
    9 Posts
    3k Views
    C
    This is the bug report: https://bugreports.qt.io/browse/QTBUG-43777
  • Evaluate expression inside QML from C++

    12
    0 Votes
    12 Posts
    4k Views
    ealioneE
    The answer for this last thing was in the way I instantiated my script console class as it was pointed out to me "here":http://stackoverflow.com/questions/27902070/using-qtscript-outside-my-main-form/27918306#27918306
  • Can non designers make good looking apps/UIs?

    8
    0 Votes
    8 Posts
    3k Views
    JKSHJ
    You're most welcome. All the best!
  • DateTimeAxis - How to set min and max?

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Following the QDateTime doc i'd try with "HH:mm" Hope it helps