跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • 0 評價
    4 貼文
    1k 瀏覽
    p3c0P
    @mahlersand Using private classes is not recommended as its implementation may change from version to version. The best would be to use QQuickPaintedItemand create your own custom types.
  • How forbid change of parameters?

    4
    0 評價
    4 貼文
    1k 瀏覽
    p3c0P
    @Trikrista Do you mean something like exclude ?
  • [SOLVED]Engino Model Loading finished

    model enginio
    3
    0 評價
    3 貼文
    1k 瀏覽
    guidupasG
    Thanks. It worked
  • Question about QML import

    qml quick
    3
    0 評價
    3 貼文
    1k 瀏覽
    shavS
    @mcosta Thanks for the reply. If I will not find any other ways I'll use different files.
  • FileDialog locks drive

    filedialog qml
    1
    0 評價
    1 貼文
    883 瀏覽
    尚無回覆
  • [SOLVED] Q_INVOKABLE vs Q_PROPERTY (QML hanging...)

    qinvokable qproperty blocktypeisvali
    3
    0 評價
    3 貼文
    15k 瀏覽
    SGaistS
    Hi, Q_INVOKABLE is used to make functions accessible throughout Qt meta object system. Q_PROPERTY is much more complex and offers additional features
  • android webview local code html

    1
    0 評價
    1 貼文
    457 瀏覽
    尚無回覆
  • Hidding an item outside viewport of a ListView

    7
    0 評價
    7 貼文
    2k 瀏覽
    G
    About my first question, I found the answer : contentItem.children.length contains 11 elements because there are 10 Rectangles (from the model) and the ListView itself. Knowing that, I cannot rely on the contentItem.children's indexes vs. currentIndex because it won't match. That's why I'm having problem at index=4 because contentItem.children[4] is the ListView. By using the itemAt() method instead of indexAt(), I succeeded to achieve what I wanted :-)
  • [solved] ListView.positionViewAtIndex() is not working

    3
    0 評價
    3 貼文
    2k 瀏覽
    SGaistS
    Hi, Thanks for sharing your solution. To mark as solved just edit the thread title and prepend [solved] to it :)
  • Display of QML image ignoring pixel alpha

    image display alpha
    2
    0 評價
    2 貼文
    2k 瀏覽
    B
    I've figured this out. The problem wasn't in fact due to image files pixel alpha. That works just fine. It had to do with the QQuickView not being transparent. What I am doing is displaying a QQuickView as a borderless window to be used as a popup dialog and I want to see through to the background, where there are no objects in the qml file. (Think of a pop up dialog with rounded corners). Here's what I'm doing: QQuickView view; // don't display an icon in the task bar // no border on the window view.setFlags(Qt::SubWindow | Qt::FramelessWindowHint); // make the view transparent so that the edges of the window, // where there is no image, show through to the background QSurfaceFormat surfaceFormat; surfaceFormat.setAlphaBufferSize(8); view.setFormat(surfaceFormat); view.setClearBeforeRendering(true); view.setColor(QColor(Qt::transparent)); // load qml file and display view.setSource(file.qml); view.show();
  • 0 評價
    2 貼文
    2k 瀏覽
    E
    From the QT documentation it seem to be possible : Exposing Attributes of C++ Types to QML Any data that is transferred from C++ to QML, whether as a property value, a method parameter or return value, or a signal parameter value, must be of a type that is supported by the QML engine. So why it is not working ? Is any of you succeed returning one or more object through method parameters ?
  • QML TreeView set active item

    4
    1 評價
    4 貼文
    5k 瀏覽
    N
    Hi, Sorry for replying to this old topic but I have a similar problem : I would like to set the currentIndex (which is read only for a TreeView) in order to navigate throught items from the given currentIndex using the keyboard. Settings selection is OK, but it does NOT set the currentIndex, so pressing down arrow selects the first item of the TreeView, as currentIndex is still undefined at this step... Here some code to select : var index = controller.activeFolderIndex; treeViewSelectionModel.setCurrentIndex(index, ItemSelectionModel.ClearAndSelect); //then I would like something like : treeView.currentIndex = index; Any idea ?
  • QML - Pie menu

    3
    0 評價
    3 貼文
    3k 瀏覽
    CybrumC
    Hi, QtQuickEnterpriseControls has pie menu. http://doc.qt.io/QtQuickEnterpriseControls/qml-qtquick-enterprise-controls-piemenu.html Can you share details ,how you implemented it? I am trying to implement a radial menu. Any help is appreciated.
  • Qml signal doesn't take effect

    qml signals emit
    4
    0 評價
    4 貼文
    2k 瀏覽
    K
    Do you get any messages about slots/signals when connecting?(what I mean is "no such slot/signal")
  • TableView "boundsBehavior"

    tableview
    1
    0 評價
    1 貼文
    727 瀏覽
    尚無回覆
  • Android control UI on Desktop

    android style desktop
    1
    0 評價
    1 貼文
    868 瀏覽
    尚無回覆
  • How to draw UML diagram for QML ?

    class diagram uml qml
    1
    0 評價
    1 貼文
    2k 瀏覽
    尚無回覆
  • Change Path Property of MapPolyline from c++

    qml c++ map mappolyline
    1
    0 評價
    1 貼文
    795 瀏覽
    尚無回覆
  • Design popup using qml

    popupwidget qml text
    8
    0 評價
    8 貼文
    3k 瀏覽
    D
    You need to add the module path to QML import path. You can do that in 2 different ways: Add "<path-to-qml-material>/modules" to your QML2_IMPORT_PATH env var. Or add it in your main.cpp using engine.addImportPath("<path-to-qml-material>/modules/");
  • Canvas in QML

    canvas qml qt5
    1
    0 評價
    1 貼文
    857 瀏覽
    尚無回覆