Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • [solved]How can I customize ComboBox?

    combobox customize qml qtquick
    22
    0 Votes
    22 Posts
    15k Views
    p3c0P
    @beidaochuan That's good :) If you are done, please mark the post as solved.
  • Embedding a shared library in a QML File

    qml shared library dll c++
    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi @Reinier-R.-Gonzalez, The class should be declared as: class PLAYERSHARED_EXPORT Player : public QObject //Note the public keyword
  • QML and OpenGL conflicts

    opengl
    3
    0 Votes
    3 Posts
    1k Views
    Z
    Asked... Apparently QtQuickView is not threaded by default, and the only way I've been told to achieve this is with a non-cross-platform way, by setting a Windows environment variable QSG_RENDER_LOOP with value "threaded". However, it doesn't seems to work, and the way it's enabled is not quite as I expected. Ideally, we would like the GUI not being responsible for conflicts or lags, and vice versa...
  • Use extended type in a QML signal with C++ slot

    signal & slot extended type
    1
    0 Votes
    1 Posts
    523 Views
    No one has replied
  • [solved]How to set TabView`s tabPosition to Qt.LeftEdge?

    tabview qml
    3
    0 Votes
    3 Posts
    1k Views
    B
    @p3c0 Thanks a lot. I have resolved it using the qt sample ..\Qt\Qt5.4.1\Examples\Qt-5.4\quick\customitems\tabwidget
  • XMLHttpRequest - support for PATCH method

    2
    0 Votes
    2 Posts
    1k Views
    R
    https://bugreports.qt.io/browse/QTBUG-38175
  • Prevent Listview from updating items

    listview delegate
    2
    0 Votes
    2 Posts
    927 Views
    p3c0P
    Hi @patrikd, You can keep a boolean property which will be updated as required. Use this as a condition for the model. property bool updateNeeded: false ... ListView { model: updateNeeded ? myModel : null } When the property updateNeeded is updated to true the binding will reevaluate and items should be populated.
  • PageLoader and effects

    6
    0 Votes
    6 Posts
    1k Views
    p3c0P
    @mrdebug Is this what you are trying to do ? import QtQuick 2.4 Item { width: 100 height: 120 Loader { id: loader anchors.fill: parent sourceComponent: component } Component { id: component Rectangle { id: rect width: parent.width height: parent.height color: "red" NumberAnimation { running: true target: rect from: -100 to: 0 property: "x" duration: 600 easing.type: Easing.InOutQuad } } } }
  • 0 Votes
    2 Posts
    2k Views
    p3c0P
    @JDGXNV The delegates are recycled every-time you scroll which means there are created and destroyed as and when required internally (More here: delegate). Caching them disables it. So I guess the problem should be on the delegate side i.e the delegate is trying to access some property which it is not able and hence crashes.
  • VideoOutput to c++

    c++ qml qtmultimedia videooutput
    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi @kolegs, How did you capture the frame ?
  • KeyboardTrackingEnabled for SpinBox?

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi @JDGXNV, You can use onEditingFinished signal handler instead.
  • Update Label Text with QML method called from C++

    property alias
    4
    0 Votes
    4 Posts
    4k Views
    p3c0P
    @marcosbontempo That's fine.. It happens all the time :)
  • Picking in qt3d

    1
    0 Votes
    1 Posts
    627 Views
    No one has replied
  • QT3D: Problem with picking mouse events from Item3D objects

    2
    0 Votes
    2 Posts
    2k Views
    E
    Can anyone explain how to use picking in qt3d 2.0 with the scene3d instead of viewport? As far as i know there is no property called 'picking'.
  • [SOLVED] Combobox styling

    qt quick qml combobox style
    3
    0 Votes
    3 Posts
    1k Views
    p3c0P
    @xumuk Please mark it as solved if it worked so that others may understand that it has solution.
  • Qt 5.3 Combobox component problem

    qml combobox qt quick
    5
    0 Votes
    5 Posts
    2k Views
    X
    @p3c0 I have already used ComboboxStyle to customize it, but still can`t solve this) Will try, ty for answer.
  • How the java script is loaded in QML file?

    3
    0 Votes
    3 Posts
    706 Views
    R
    Thank you , given link is helpful.
  • Object created from C++, display on QML side and delete from C++

    3
    0 Votes
    3 Posts
    929 Views
    V
    Hi Why not just save pointer of allocated model? Also, consider to register the pointer at quick engine as CPP, other wise it might be destroed by JS GC in an inappropriate time br
  • 0 Votes
    5 Posts
    3k Views
    A
    My problem is image delegate only. I found addiotional regularity: problematic delegates have the same picture as last top delegate hidden during scroll down within ListView. It seems scrolling out delegate from visible area forces it's image repaint in other delegates, which are in visible area. This repaint seems to hide the text element, declered with z-order above the image. Reset the visible property (visible=false, visible=true) at end of each scrolling (using onMovementEneded) solves the problem. But, i don't want to pay the repaint price of such solution as my application is running on embedded device.
  • Set TextField's width in QtQuickControls ?

    qtquick control
    2
    0 Votes
    2 Posts
    958 Views
    p3c0P
    Hi @hongquan, Yes width is the exact property. Are you sure something other is not affecting the it ?