Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • Running Qt Quick and CPP tests at the same time

    Solved
    3
    0 Votes
    3 Posts
    406 Views
    A
    @fcarney Ya looks like the uppercase. 🤦‍♂️ Thanks for your help.
  • How can I use format for text?

    Unsolved
    3
    0 Votes
    3 Posts
    270 Views
    fcarneyF
    Text { property real somenumber: 12345.12345 text: somenumber.toFixed(1) } This is a Javascript feature of Number.
  • How to get the scrollbar to the left side of the window

    Solved
    5
    0 Votes
    5 Posts
    850 Views
    J
    @raven-worx Thanks for the guide I was able to fix the problem with the below code Flickable { id : flickable x: 0 y: 0 width: parent.width height: 425 contentHeight: rectangle.height contentWidth: rectangle.width clip: true ScrollBar.vertical: ScrollBar { width: 40 policy: ScrollBar.AlwaysOn parent: flickable.parent anchors.top: flickable.top anchors.left: flickable.left anchors.bottom: flickable.bottom }
  • QML animation blocked when integrating QQuickWidget(QML) and qwidget(VTK) in Python

    Unsolved
    1
    0 Votes
    1 Posts
    329 Views
    No one has replied
  • Qml SVG Image producing aliased result

    Solved
    4
    1 Votes
    4 Posts
    1k Views
    C
    @fcarney I appreciate the response but this didn't work for me. This however, led me to look further into the documentation. I was aware of smooth, anti-aliasing, and sourceSize which I all tried and didn't work. Solution The solution in the end was mipmap: true on the image, which results back to a smooth image. This is default to false, and I didn't realise that scaling the image down would produce a bad quality image but turns out, yes.
  • How to test if a file exist on Android when the url comes from QML FileDialog?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    mbruelM
    @fcarney perfect that's exactly what I needed! my bad, I didn't go to the bottom of the documentation... Yes QML Image loads perfectly this kind of url: content://com.android.providers.media.documents/document/image%3A455947 So I'm just storing it as a string and do the test in QML rather than in C++. No need of an hidden image, it can be done directly on the visible one with something like this: Image { id: dogPicture fillMode: Image.PreserveAspectFit; height: parent.height/2 - 8* spacing source: dog.pictureUrl anchors { top: parent.top topMargin : spacing horizontalCenter: parent.horizontalCenter } onStatusChanged: if (status === Image.Error) source = dog.dogIconDefault(); } with my C++ accessor being: QString Dog::pictureUrl() const { if (_pictureUrl.isEmpty()) return sDogIconDefault; return QUrl(_pictureUrl).toString(); } Thanks @fcarney ;)
  • General scoll for ListViews in ListView

    Unsolved
    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • How to detect QML app minimization on android?

    Unsolved
    1
    0 Votes
    1 Posts
    195 Views
    No one has replied
  • QtQuick Controls: Material Style not found?

    Solved material qml style qtquick control
    3
    0 Votes
    3 Posts
    2k Views
    lopeztelL
    Solved it by adding the line qputenv("QT_STYLE_OVERRIDE","Material"); in main.cpp
  • MediaPlayer on iOS stops when playing other sounds

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • GPU Memory leaks when redo update custom QQuick3DGeometry

    Solved
    4
    0 Votes
    4 Posts
    518 Views
    K
    @jsulm I reported it just now. https://bugreports.qt.io/browse/QTBUG-100159
  • How to paint a QML custom component in Qt Design preview

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • Unable to access Q_PROPERTY for QML_SINGLETON object.

    Solved
    3
    0 Votes
    3 Posts
    271 Views
    M
    Thank you very much. It works fine now.
  • mapping dynamic points on a map

    Solved qml qml map geocoordinate
    3
    0 Votes
    3 Posts
    705 Views
    K
    Finally found MapItemView which does what I am searching for.
  • 0 Votes
    2 Posts
    336 Views
    V
    Taken directly from the 5.15.8 docs for DisplaySettings: ========================================== Detailed Description There is no need to create an instance of this object. To use it, simply import the QtDeviceUtilities.DisplaySettings module. ========================================== But where is it? Why does it not exist for Windows? We have a commercial license. Where is this documented functionality? What is required to insure that the install of Qt that we are using includes the required library/module? In an operating room, setting the brightness is a very valuable capability. And, yes, I know what a singleton is, having created numerous singletons for this project.
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    42 Views
  • How to extend qml containers (Row or Column) in another file

    Solved row qtquick
    4
    0 Votes
    4 Posts
    773 Views
    GrecKoG
    It's documented in the QML Reference : https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#property-attributes
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    106 Views
  • undefined reference to library function in Qtcreator

    Unsolved
    2
    0 Votes
    2 Posts
    828 Views
    jsulmJ
    @Narahara said in undefined reference to library function in Qtcreator: And I use a library developed by Visual Studio 201 Is this library a C++ library? If so then you have to use compiler from Visual Studio 2013 to build your app, because you can't mix binaries compiled with different compilers.
  • project.exe does not launch

    Solved qtquick qml windows 10
    3
    1 Votes
    3 Posts
    871 Views
    J.HilkJ
    @RLocksley said in project.exe does not launch: windeployqt project.exe if that is the whole command you used, that you missed the --qmldir parameter https://doc.qt.io/qt-5/windows-deployment.html