Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Passing SVG from C++ to QML

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    A
    @Soheil Do you happen to know if this blob-encoding is an officially supported way to display images? For large images, the extra work of encoding the byte array into a QUrl seems excessive. For small SVGs, this might be a good solution for me.
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • TextFields with masks or validators seem unusable

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    StokestackS
    Thanks for the replies, guys. I'm pretty new to QML, so the binding example is very helpful. I still think these text controls desperately need improvement, though.
  • Button not filling Rectangle

    Unsolved
    5
    0 Votes
    5 Posts
    613 Views
    S
    It's because the material style sets non-zero values for xxxInset properties. Set leftInset, rightInset, topInset, bottomInset values to 0 and the button appears to fill its parent.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • QT QML realtime chart

    Unsolved qml qml c++ qml binding chartview chart
    5
    0 Votes
    5 Posts
    1k Views
    V
    @J-Hilk Ok that's enough I think. One more question what will happen to scrolleft(). If I keep on incrementing these, will there be any increase in runtime memory or processor load?
  • Title attribute of html tag

    Unsolved qml label html title
    8
    0 Votes
    8 Posts
    3k Views
    fcarneyF
    The tag support in Qt objects is really simplistic and nowhere near like a browser. If you want browser type html use webengine. I think webengine is pretty heavy and probably not what you want.
  • In-App Purchasing of Registered Product (google store)

    Unsolved purchasing store android inapp registertype
    2
    0 Votes
    2 Posts
    499 Views
    Fitndex-developerF
    @Fitndex-developer said in In-App Purchasing of Registered Product (google store): com.fitndex.theApp Hello Everyone, since there has been no activity on this post, I thought I'd let everyone know that this setup works with one change in the code: do not include the app name in the identifier. identifier: 30day_data_access ... is correct identifier com.fitndex.theApp.30day_data_access ... is wrong On google play I was missing the following. I was in internal testing and the app had not been published, i published to closed testing. Add licence testers to the app in google play console (this is different than the release track email list) If using the same app version code as the published version, testing will work, even when plugged in for debug, if you are logged into the tester gmail account. I took a crack at developing subscriptions in java, and for me, that is going to take a while but I will finish (the jni messenger example in android extras helps start with communicating with java if you are new to that), Qt purchasing makes life a lot easier just most of your work is going to be on the google play console side when dealing with Qt Purchasing. So if things are not working, check your settings with google (or apple), that is most likely it. Qt purchasing does not handle subscriptions, it will never find your subscriptions no matter what. The reason for that is the developers could not come up with a platform independent solution for subscriptions. The community needs to figure this one out for everyone. An example anyone? Since monetization is so important; and documentation/examples on qt purchasing are minimal, I hope this helps some of you!! I could have used something like this when I was working on it. FITNDEX HOME now we are on track to launch this summer. You can join the beta on website. Lets help each other get to market. The more money we all make, the better Qt will get, I promise. Steve
  • Setting an icon for the QML app (the APK file)

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    J.HilkJ
    @qcoderpro said in Setting an icon for the QML app (the APK file): Did you find the first error I sent in the first post here trivial? Probably that may cause later issues. like I said, I'm not using Qt7 there might be a bug with that, but I usually also do not check that checkbox, top copy the files. Was never really necessary :D
  • 0 Votes
    1 Posts
    117 Views
    No one has replied
  • accu gauge

    Solved
    2
    0 Votes
    2 Posts
    159 Views
    S
    Solved :-) the problem was the tickmarkStepSize : 4 Rectangle { x : 70 y : 400 width: 200 height: 50 color: "#808080" Gauge { id: accu anchors.fill: parent anchors.margins: 10 orientation : Qt.Horizontal tickmarkStepSize : 0.5 tickmarkAlignment: Qt.AlignBottom minimumValue: 11 maximumValue: 13 value: 12.6 style: GaugeStyle { valueBar: Rectangle { implicitWidth: 10 color: (accu.value <= 12) ? "red" : (accu.value <= 12.5) ? "yellow" : "green" } } } }
  • How to Send QML image to C++ side

    Solved
    5
    0 Votes
    5 Posts
    746 Views
    SGaistS
    Are you trying to implement something like described here ?
  • First attempt to use Qt networking on QML apps

    Unsolved
    28
    0 Votes
    28 Posts
    3k Views
    Q
    Is the problem still ambiguous, please? I tried hard but can't find the issue. :(
  • How Disable ScientificNotation on TextField

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    B
    It works, thank you for your answers, @J-Hilk 's solution fits my need more, thank you anyway for your answer @lemons :)
  • Qt6 QML book example source

    Solved
    3
    0 Votes
    3 Posts
    389 Views
    J
    That works. Thank you.
  • QML screen rotation

    Unsolved
    1
    1 Votes
    1 Posts
    474 Views
    No one has replied
  • Window Component not showing up in Deisgner for QtQuick qml

    Unsolved
    1
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • How to load different components with different properties in the same Loader?

    Solved
    3
    0 Votes
    3 Posts
    307 Views
    jeanmilostJ
    @fcarney Thank you for your answer. Finally I could resolve my issue by getting the Loader created by the Repeater, and to calling its setSource() function directly, with the correct properties, adapted for each component I need to load.
  • Dynamic height of tableviewcolumn according to text length

    Unsolved
    2
    0 Votes
    2 Posts
    685 Views
    L
    @Laito Unfortunately I almost forgot about the old quick controls. Here is an idea of how you could do it with the new controls. Note, I added a wrapper for spacing around the table, to show there is no overflowing: import QtQuick.Window 2.15 import QtQuick 2.15 import QtQuick.Controls 2.15 import Qt.labs.qmlmodels 1.0 ApplicationWindow { title: qsTr("TableView example") id: root width: 500 height: 400 visible: true Item { id: wrapper anchors.fill: parent anchors.margins: 20 HorizontalHeaderView { id: header z: 1 interactive: false syncView: tableView anchors.top: parent.top implicitHeight: 50 model: ["Number", "Elevation Max", "Elevation Min", "Length", "Depth"] delegate: Rectangle { implicitWidth: 100 implicitHeight: 50 color: "#0A1B2D" Text { anchors.fill: parent anchors.margins: 5 wrapMode: Text.Wrap text: modelData color: "#ffffff" font.pixelSize: 15 horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } } } TableView { id: tableView anchors.fill: parent topMargin: header.implicitHeight columnSpacing: 1 rowSpacing: 1 clip: true flickableDirection: Flickable.VerticalFlick boundsBehavior: Flickable.StopAtBounds property int selectedRow: -1 model: TableModel { TableModelColumn { display: "number" } TableModelColumn { display: "elevation_Max" } TableModelColumn { display: "elevation_Min" } TableModelColumn { display: "length" } TableModelColumn { display: "depth" } rows: [{ "number": 1, "elevation_Max": 90000, "elevation_Min": 50, "length": "52-73\n122-163\n200-264\n280-317", "depth": "8636-8900" }, { "number": 2, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57\n119-166\n206-264\n119-166\n206-264\n119-166\n206-264\n119-166\n206-264", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }, { "number": 3, "elevation_Max": 8000, "elevation_Min": 21, "length": "0-57", "depth": "12700-13462" }] } delegate: Rectangle { implicitWidth: 90 implicitHeight: content.implicitHeight color: tableView.selectedRow === row ? "#052641" : "#394755" MouseArea { anchors.fill: parent onClicked: tableView.selectedRow = row } Text { id: content width: parent.width padding: 10 text: display color: "#ffffff" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap } } } } }