跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • Focus issue in SwipeView with Repeater

    Solved
    4
    0 評價
    4 貼文
    588 瀏覽
    S
    I need a FocusScope for the SwipeView items. Then everything works as intended. import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 Window { id: window width: 200 height: 200 visible: true title: qsTr("Hello World") Item { anchors.fill: parent SwipeView { id: swipe anchors.fill: parent focus: true FocusScope { id: scope focus: SwipeView.isCurrentItem Rectangle { anchors.fill: parent color: activeFocus ? "gray" : "green" TextField { focus: true text: activeFocus ? "focus" : "no focus" } } } } } } Also adding the Repeater again works! Thanks for listening..
  • Template Class and QML

    Unsolved
    1
    0 評價
    1 貼文
    332 瀏覽
    尚無回覆
  • Dynamic retranslate UI. Button gets not arranged properly

    Unsolved
    3
    0 評價
    3 貼文
    484 瀏覽
    S
    I checked the issue and on Windows 10 it does not appear. Only on my System with Manjaro Linux with KDE Plasma it happens.
  • Additional columns and customs delegate for TableView based on QAbstractTableModel.

    Unsolved
    2
    0 評價
    2 貼文
    1k 瀏覽
    fcarneyF
    https://doc.qt.io/qt-5/qml-qt-labs-qmlmodels-tablemodel.html#using-delegatechooser-with-tablemodel
  • COnvert image to base64 with js

    Unsolved
    3
    0 評價
    3 貼文
    565 瀏覽
    fcarneyF
    @alpha_coder said in COnvert image to base64 with js: base64 using javascript. Is this js in QML? Text { width: 100 height: 20 text: Qt.btoa("Hello base64") } QML global functions.
  • Resize children based on number

    Unsolved
    4
    0 評價
    4 貼文
    348 瀏覽
    fcarneyF
    Do Layout.minimumHeight on all at 1/3 of parent height (or a fraction based upon number of charts). Then set the active or larger chart to Layout.fillHeight: true. This should enlarge that one to fill the space. This should allow you to use a model with a Repeater or ListView to make it automatically adjust to the number of charts too. You would just have to have a way to identify which chart is the active chart.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    11 瀏覽
    尚無回覆
  • Not work when Flow and MouseArea in a ScrollView

    Unsolved
    1
    0 評價
    1 貼文
    181 瀏覽
    尚無回覆
  • the model in Qt Quick can not show the data in listview?

    Solved
    5
    0 評價
    5 貼文
    465 瀏覽
    MhM93M
    Aha, I get it. thanks.
  • Automatic conversion of QList<QString> is not a JS array of strings?

    Solved
    3
    0 評價
    3 貼文
    830 瀏覽
    DiracsbracketD
    @GrecKo QStringList works without conversion to Array. So only the QList<QString> conversion is not transparent. Thanks.
  • Qml can not show string encoded by utf-8?

    Solved
    5
    0 評價
    5 貼文
    3k 瀏覽
    Crawl.WC
    @fcarney Yes, My test and @KroMignon 's demo also tends to uft-16.
  • ListView - SmoothedAnimation -> How to stop animation at specific item

    Solved
    2
    0 評價
    2 貼文
    209 瀏覽
    P
    Problem solved. It's working animation which changing items in ListView SmoothedAnimation { id: animacja1 target: listviewID easing.type: Easing.OutCubic property: "contentY" running: animacja_running duration: animation_value * mainListView.animation_height from: listviewID.contentY to: listviewID.contentY + (mainListView.animation_value * mainListView.animation_height) } mainListView.animation_value - how many items. Value > 0 -> increasing index, Value < 0 -> decreasing index mainListView.animation_height - height of item You can change it using this function function xx_ustaw(x_value, x_height) { object_value3.animation_height = x_height object_value3.animation_value = x_value object_value3.animacja_running = true }
  • Qt Quick 2: make TableView selectable for a row

    Unsolved
    1
    0 評價
    1 貼文
    142 瀏覽
    尚無回覆
  • TypeError on closing window

    Unsolved
    2
    1 評價
    2 貼文
    325 瀏覽
    M
    I can confirm this is a lifetime issues. Moving "Test vars;" outside of main solves the issues. Does this mean QML engine is closing after the application thread?
  • How to render shortcut text in custom button?

    Unsolved
    10
    0 評價
    10 貼文
    917 瀏覽
    M
    Apparently there is no builtin solution for this. It must be done in application code. Do I have to mark this topic as Solved?
  • Gridview dynamic update on C++ model setData() or qml ListModel set()

    Unsolved the
    6
    0 評價
    6 貼文
    2k 瀏覽
    B
    If I understood correctly, it wasn't even working for a QML ListModel. I think that would need to be resolved first before getting bogged down with the C++ model.
  • Connection between two Pages in SwipeView

    Unsolved function create iste
    3
    0 評價
    3 貼文
    310 瀏覽
    E
    Thanks that works
  • I want to create an application using Qml.net with Qt

    Unsolved
    11
    0 評價
    11 貼文
    1k 瀏覽
    jsulmJ
    @MounikaGaddam PLEASE read documentation: https://qmlnet.github.io/setup/ !
  • Mainwindow problem

    Unsolved
    3
    0 評價
    3 貼文
    314 瀏覽
    jsulmJ
    @med12 Usually if collaborating on same project people work on same code base and use a version control system like Git. You should think about switching to this approach instead of messing up with different code bases.
  • Post image to private server

    Unsolved
    1
    0 評價
    1 貼文
    154 瀏覽
    尚無回覆