跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • Navigation bar on bottom

    2
    0 評價
    2 貼文
    1k 瀏覽
    dheerendraD
    There is not direct way to do this. You need to write component to make this happen. You can use the ListView at the bottom to show all the qml files. Handle the mouse events to check with element has been clicked. Based on this either push or pop the contents.
  • A page Loding a Listview that has a C++ binding

    12
    0 評價
    12 貼文
    3k 瀏覽
    dheerendraD
    Here main.qml itself is like your login page. MyView.qml is the view page. You can set your C++ model to MyView.qml. How to expose the C++ model to QML ? Please look at quick/models directory under Qt installation examples directory.
  • TextArea auto new line problem

    3
    0 評價
    3 貼文
    2k 瀏覽
    S
    Thanks for reply! I did not put any space characters. I tested like this: first input one chinese word, than input some character 'a' untile the cursor reached the right end of the area. The result was all those 'a' appeared in the new line. I also tested input some space characters. It looks like Qt treated chinese words as space character. I only want to inputing texts auto breaking into new line when reach the right end of the textarea. Now I found the example in Qt examples at 'declarative\tutorials\gettingStarted\core\textArea.qml'
  • [Solved] best way to delegate through sqlite data for qml list view

    11
    0 評價
    11 貼文
    7k 瀏覽
    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 評價
    12 貼文
    6k 瀏覽
    W
    Thank you at all which helped me so much. Thank you!!!
  • Qt Quick Examples and Project problem

    4
    0 評價
    4 貼文
    3k 瀏覽
    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 評價
    3 貼文
    1k 瀏覽
    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 評價
    4 貼文
    2k 瀏覽
    D
    Take a look @ "this...":http://comments.gmane.org/gmane.comp.lib.qt.user/7508
  • QML Tumbler (number picker)

    8
    0 評價
    8 貼文
    5k 瀏覽
    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 評價
    2 貼文
    733 瀏覽
    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 評價
    2 貼文
    662 瀏覽
    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 評價
    10 貼文
    3k 瀏覽
    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 評價
    2 貼文
    668 瀏覽
    A
    This should be fixed in 5.4. https://bugreports.qt-project.org/browse/QTBUG-40809
  • Connect To Remote Webservice using Soap

    4
    0 評價
    4 貼文
    2k 瀏覽
    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 評價
    9 貼文
    9k 瀏覽
    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 評價
    5 貼文
    3k 瀏覽
    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 評價
    10 貼文
    3k 瀏覽
    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 評價
    2 貼文
    2k 瀏覽
    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 評價
    3 貼文
    865 瀏覽
    J
    Right!!
  • Creating Mock objects in Qt

    2
    0 評價
    2 貼文
    9k 瀏覽
    N
    http://qt-project.org/forums/viewthread/43482