Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • [Solved] best way to delegate through sqlite data for qml list view

    11
    0 Votes
    11 Posts
    7k Views
    SGaistS
    It's up to you, you can also use a QScopedPointer so you don't have to delete someSqlModel yourself
  • Qt components and QML sidebar/ examples

    12
    0 Votes
    12 Posts
    6k Views
    W
    Thank you at all which helped me so much. Thank you!!!
  • Qt Quick Examples and Project problem

    4
    0 Votes
    4 Posts
    3k Views
    JKSHJ
    Hi, and welcome to the Qt Dev Net! [quote author="GirijaG" date="1409749578"]I installed qt-opensource-windows-x86-mingw482_opengl-5.3.1 on Windows 7. when i m trying run QtQuick 2.0 application i m getting the following error.[/quote]See my previous post from 8 July 2014. It's explained there.
  • Create Qt Quick Controls fully programmatically?

    3
    0 Votes
    3 Posts
    1k Views
    J
    Great, works. Thanks! @TestObject:: TestObject(QQuickItem *parent) : QQuickItem (parent) { this->setFlag(ItemHasContents, true); } QSGNode * TestObject::updatePaintNode(QSGNode *node, UpdatePaintNodeData *) { QSGSimpleRectNode *pNode = static_cast<QSGSimpleRectNode *>(node); if (! pNode) { pNode = new QSGSimpleRectNode(); pNode->setColor(Qt::red); } pNode->setRect(boundingRect()); return pNode; }@
  • C++ object destructor is not invoked when QML item is destroyed

    4
    0 Votes
    4 Posts
    2k Views
    D
    Take a look @ "this...":http://comments.gmane.org/gmane.comp.lib.qt.user/7508
  • QML Tumbler (number picker)

    8
    0 Votes
    8 Posts
    5k Views
    JKSHJ
    [quote author="Rizzer" date="1409721198"]I've posted a "working" set of Tumbler files at the bug report ("QTBUG-38389":https://bugreports.qt-project.org/browse/QTBUG-38389)[/quote]Fantastic! Thank you for your work and contribution.
  • Qt3D 3DS ScenePlugin missing/not working

    2
    0 Votes
    2 Posts
    733 Views
    M
    The plugin is actually not needed, because the implemented lib assimp supports different file types. The error was a wrong path...
  • File Transfer via bluetooth

    2
    0 Votes
    2 Posts
    661 Views
    N
    You will find several response in this link: http://qt-project.org/doc/qt-5/QUuid.html
  • [Solved] Read File name from folderlistmodel

    10
    0 Votes
    10 Posts
    3k Views
    T
    Here the simplified code.Anyway i manage to solve.Kind of dirty but at least it work.The code is below.Just make sure only call it when necessary else when scrolling lisview, the file name keep changing even when just scrolling without selecting it.Takes me almost a week to figure it out.Thanks. //WORKING CODE @ View.currentItem.DataModel.fileName @ //SAMPLE CODE @ ListView { id: View clip: true model: ListModelling delegate: listcomponent } FolderListModel { id: ListModelling folder: "file:/accounts/1000/shared" //folder: "file" showDirs: true } ListModel { id: ListModel ListElement { folder: "" index: 0 } } Component { id: listcomponent ListItem { id: listitem property variant DataModel: model Text { id: showname text: fileName anchors.verticalCenter: parent.verticalCenter anchors.left: foldersymbol.right anchors.leftMargin: 10 anchors.right: parent.right } } } @
  • QQuickFramebufferObject update ShaderEffect

    2
    0 Votes
    2 Posts
    667 Views
    A
    This should be fixed in 5.4. https://bugreports.qt-project.org/browse/QTBUG-40809
  • Connect To Remote Webservice using Soap

    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You should implement them now, you have somewhere an error occurring and one of them could be that one of these two files (or both) cannot be read but you don't check that. Don't assume it's working, validate.
  • Private properties in QML

    9
    0 Votes
    9 Posts
    9k Views
    jeremy_kJ
    I agree that enforcing a cleaner interface would be nice. As is, property use takes a little more discipline
  • QML file from extension plugin -> "Unknown component"

    5
    0 Votes
    5 Posts
    3k Views
    B
    Well well well... It works...partially :p Firstly, I got a...warning (in french) : "The QML module contains some C++ modules, reading type informations...". So, GridMenu is recognized by the code model, but if I run the program it doesn't work anymore : "QQmlApplicationEngine failed to load component qrc:///main.qml:5 "../libs/customquick/controls": no such directory" Maybe because main.qml is within a Qt resource file ? EDIT : ok...it's because the qrc file. If I copy main.qml in the build directory and I delete it from the resource file, It works. The "import" is still yellow underlined.
  • Multi touch qml list view and path view

    10
    0 Votes
    10 Posts
    3k Views
    M
    Ok thats working well. To get it working I had to make my list views non-interactive so I have lost all the nice swipe animations. I guess I would have to define all the interactions myself. I can now move each list up and down at the same time. Thanks. It has however created a different problem. I have created my MultiPointTouchArea within the list view. This area is now blocking the mouse area defined within the delegate. So I cant select any of the items in the list anymore. Is there any way to pass mouse input through the multipoint area to the inner mouse areas.
  • Tree view, QtQuick 2.0, how?

    2
    0 Votes
    2 Posts
    2k Views
    D
    Hmm, one solution can be to use JavaScript and iterate over the data and add elements @ runtime. In your case maybe simple text. For each level you move the x value a little bit for the text elements. Another way can be to create your own custom element in c++ with "QQuickPaintedItem":http://qt-project.org/doc/qt-5/qquickpainteditem.html. For clicks, you can use simple collision detection (bounding rect) and signals. Put it inside a flickable container for scrolling.
  • [solved] Interline space in text

    3
    0 Votes
    3 Posts
    864 Views
    J
    Right!!
  • Creating Mock objects in Qt

    2
    0 Votes
    2 Posts
    9k Views
    N
    http://qt-project.org/forums/viewthread/43482
  • SetContextProperty of a class that extends Object

    9
    0 Votes
    9 Posts
    7k Views
    L
    Use QVariant::fromValue: @view.rootContext()->setContextProperty("applicationData", QVariant::fromValue(data));@ http://qt-project.org/doc/qt-4.8/declarative-modelviews-stringlistmodel-main-cpp.html
  • Alter property from component via javascript

    2
    0 Votes
    2 Posts
    619 Views
    p3c0P
    Hi and Welcome, Can you show some of your code ? What have you tried ?
  • Tips for a good QML library

    1
    0 Votes
    1 Posts
    560 Views
    No one has replied