Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Create a custom componant using a loop for

    Unsolved
    2
    0 Votes
    2 Posts
    166 Views
    C
    Did you have a look at the Repeater Component? https://doc.qt.io/qt-5/qml-qtquick-repeater.html
  • endMoveRows in model crashes my app

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    I
    I think it crashes because move up from 2 to 3 equals to do nothing. According to doc https://doc.qt.io/qt-5/qabstractitemmodel.html#beginMoveRows If you want to move 2 to 3 you have to move 2 to 4, but in this case you will have a problem with pre_last & last element. So there is a tricky way to do that: move 3 to 2 void ObjectModel::move(int from, int to) { ... if (from + 1 == to) std::swap(from, to); beginMoveRows(QModelIndex(),from,from,QModelIndex(),to); ... endMoveRows(); }
  • Auto-wrapping non-QObject types when passing to QML

    Unsolved
    3
    0 Votes
    3 Posts
    345 Views
    fcarneyF
    Have you looked at this page?
  • Underestanding QML for D&D

    Unsolved
    2
    0 Votes
    2 Posts
    251 Views
    fcarneyF
    I found drag and drop to be finicky. If you haven't already seen this tutorial I would look at it. It helped me understand how to cleanly setup my drags and drops. I still found issues I had to tweak to make work just right. Like dragging items from a list would sometimes leave the source miss-adjusted. I had to tell it to remember its position to fix that. Other times I refreshed the list.
  • Remove Drawer Overlay

    Unsolved drawer qml
    1
    0 Votes
    1 Posts
    396 Views
    No one has replied
  • 0 Votes
    1 Posts
    632 Views
    No one has replied
  • ContentItem in custom item

    Solved
    2
    0 Votes
    2 Posts
    274 Views
    S
    Well, answer is coming after a question even one has googled before it a lot. In the case of using menu, contentData property can be used for the replacing MenuItem's. I think the same approach can be extended on custom types.
  • 0 Votes
    1 Posts
    166 Views
    No one has replied
  • Don't understand cause of "Cannot assign object to list property" error

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    KroMignonK
    @ocgltd said in Don't understand cause of "Cannot assign object to list property" error: Since .children is a list I thought this should work Yes it maybe a list, but a list of what??? I only aware about contentChildren and contentData for Popup component, what is bodyContent? Note: it would work with contentData (with is a list of object), but not with contentChildren because is it a list of Item
  • Dynamically add LineSeries-derived type to QML ChartView

    Unsolved
    1
    0 Votes
    1 Posts
    259 Views
    No one has replied
  • QtChart not importing even after installing it from QtMaintenance tool.

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    F
    @KroMignon Hi, I looked at the example and I also used import QtCharts 2.0 but it does not do anything.
  • USB plug/unplug many times, I'd like to use same no "/dev/bus/usb/"

    Unsolved
    2
    0 Votes
    2 Posts
    236 Views
    sierdzioS
    This has nothing to do with Qt, better look for help on some Linux-specific forum. The /dev folder is under complete control of the operating system. You should not try to change how it works! Instead, if you need to talk to such USB device, use common libraries (like libusb) and always search for your device using it's device ID, not path.
  • Controls from scratch

    Unsolved
    6
    0 Votes
    6 Posts
    499 Views
    sierdzioS
    I don't know. To notice any performance difference I guess you'd have to spawn 50 of them and test on some slow device. I guess custom-styled Controls 2 are going to be faster due to some optimizations they can do to drawing, but I don't really know this for sure. To me it's more of a question of what do you prefer to use as a programmer, what will be easier to write and maintain.
  • 3d Cube color picker in QML

    Unsolved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • qmlregistered with c++

    Unsolved
    9
    0 Votes
    9 Posts
    615 Views
    B
    I'm trying to make the BLE part has a separate static module (LIB) and integrating it into main executables, Everything linked correctly and works perfectly, but I'm getting the error, thanks for trying
  • Qt multi process on Windows

    Unsolved
    2
    0 Votes
    2 Posts
    212 Views
    sierdzioS
    What do you mean by "multi process"?
  • My custom code with qt5 + qtquick2 in shared object

    Solved
    15
    0 Votes
    15 Posts
    814 Views
    C
    @jeremy_k Obrigado pela ajuda! (Thank you for your help!)
  • Scollbar not interactive with Listview

    Unsolved
    1
    0 Votes
    1 Posts
    112 Views
    No one has replied
  • Virtual Keyboard Hide Button

    Unsolved
    1
    0 Votes
    1 Posts
    287 Views
    No one has replied
  • Change color of TabBar sliding color line

    Solved
    2
    0 Votes
    2 Posts
    244 Views
    MarkkyboyM
    [image: f5230b22-d934-4cd4-942d-c3974b553fd6.JPG]