跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • TextArea cursor not updated after font size change

    Unsolved
    1
    0 評價
    1 貼文
    186 瀏覽
    尚無回覆
  • Reference Error: mapToItem is not defined

    Solved
    2
    0 評價
    2 貼文
    283 瀏覽
    sierdzioS
    mapToItem() is a function of Item component - so you need to specify an object. Example: Rectangle { id: foo } function getPoint() { let pnt = foo.mapToItem(player, food.x, food.y) return pnt }
  • 此主題已被刪除!

    Unsolved
    4
    0 評價
    4 貼文
    31 瀏覽
  • Flow : "compact" vertically on horizontal flow

    Solved
    2
    0 評價
    2 貼文
    173 瀏覽
    M
    As a reply; the qquickflow class (implemented in qtdeclarative) does not support individual heights. We will customize this component with our own version.
  • List entries

    Unsolved
    2
    0 評價
    2 貼文
    200 瀏覽
    mrjjM
    Hi Well for QWidgets/QListWidget , you can via right-click it and select Edit items but i have no idea if it works the same for a QML project.
  • Restored window after minimizing is not maximized

    Solved minimize visibility button window qml
    3
    0 評價
    3 貼文
    2k 瀏覽
    K
    Omg, I've just ORed the flags, and now it works as intended. In QtWidgets it should be: // To set the window minimized setWindowState(windowState() & ~Qt::WindowActive | Qt::WindowMinimized); // To restore the window from minimized state setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); So in QML it should work in the same way.
  • How to install module "QtMultimedia" on Windows

    Solved
    26
    0 評價
    26 貼文
    14k 瀏覽
    JKSHJ
    @qcoderpro said in How to install module "QtMultimedia" on Windows: Probably still can't be done using 5.15.2! I just realized that you're trying to use Instanced Rendering. This feature is only available from Qt 6.1 onwards: https://www.qt.io/blog/qtquick3d-instanced-rendering Qt 6.1 is not yet released. Have a look at the link I posted before; it contains examples that work with Qt 5.15.2.
  • Can i make a button in qml trigger a function in c++?

    Unsolved
    4
    0 評價
    4 貼文
    258 瀏覽
    SGaistS
    Hi, By reading this dedicated chapter in Qt's documentation.
  • Connecting C++ signal to QML slot

    Solved
    10
    0 評價
    10 貼文
    1k 瀏覽
    Pablo J. RoginaP
    @Mary_M If your issue is solved please don't forget to mark the post as such!
  • Drag and Drop Shape Objects

    Unsolved
    2
    0 評價
    2 貼文
    268 瀏覽
    JKSHJ
    @TSqueak said in Drag and Drop Shape Objects: all attempts at assigning a MouseArea to Shapes, ShapePaths, or PathLines haven't worked. Can you please post the code for one (or more) of your attempts?
  • QML Canvas calculating area

    Unsolved
    2
    0 評價
    2 貼文
    355 瀏覽
    fcarneyF
    Does Qt have any type of floodfill? Then you could count the pixels set and those not set as your area.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    13 瀏覽
    尚無回覆
  • QML SwipeView two-finger swipe

    Unsolved
    1
    0 評價
    1 貼文
    365 瀏覽
    尚無回覆
  • How can I binding function when press hide button of virtual keyboard?

    Unsolved
    2
    0 評價
    2 貼文
    437 瀏覽
    raven-worxR
    @olekhanchai what exactly do you want to achieve? You can check if the keyboard gets hidden with "Qt.inputMethod.visible" property if thats you are after
  • Qt Quick Application crashing on updating the ListView using QAbstractListModel class

    Solved
    12
    0 評價
    12 貼文
    1k 瀏覽
    J
    @dheerendra Thanks for pointing it out. Yes it was due to index() and parent() . I removed it completely Now the application is running [image: 0ece1df4-8957-419a-b58e-5623f28fb791.png]
  • Property changes

    Unsolved
    1
    0 評價
    1 貼文
    140 瀏覽
    尚無回覆
  • ScrollBar QML crash

    Unsolved
    1
    0 評價
    1 貼文
    241 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    15 瀏覽
    尚無回覆
  • QML autocomplete / intellisense doesn't work for namespace enums

    Unsolved
    4
    0 評價
    4 貼文
    1k 瀏覽
    J.HilkJ
    @aatwo I have my QML enums in a basic c++ class with Q_GADGET macro as a lightweight alternative to Q_OBJECT (it does not require the class to be derived from QObject, too) If thats an alternative for you?
  • Custom image linear gauge possible?

    Unsolved linear gauge rpm qml image
    1
    0 評價
    1 貼文
    743 瀏覽
    尚無回覆