Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Problem invoking method: No such method

    Unsolved
    4
    0 Votes
    4 Posts
    378 Views
    SGaistS
    Can you provide a minimal compilable example that shows this issue. That way it will be easier to help you find the issue.
  • Flip VideoOutput left to right or upside down

    Solved
    4
    0 Votes
    4 Posts
    726 Views
    Esmaeil_SooanE
    @GrecKo Hi no, I think it`s important property that must be add to VideoOutput module. any way : simple solution is what @diego-qt said but there is another solutions like ShaderEffect and QAbstractVideoSurface.
  • Issues with Retrieving Coordinates in Frameless Qt Window

    Unsolved window coordinate qml
    1
    0 Votes
    1 Posts
    224 Views
    No one has replied
  • module "QtCharts" is not installed

    Unsolved
    4
    0 Votes
    4 Posts
    452 Views
    SGaistS
    Why is that ?
  • Qml's strange blocks on windows11

    Unsolved
    3
    0 Votes
    3 Posts
    609 Views
    G
    I also faced this problem, try using "layer.enabled: true" for your main QML element. It was also effective to use “QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);” in C++, but for me personally this was not acceptable, because the project used other rendering methods.
  • integration of QML with Visual Studio 2002

    Unsolved
    3
    0 Votes
    3 Posts
    394 Views
    L
    @Christian-Ehrlicher I'm sorry I didn't make it clear. I mean integrated into projects that use VS2002. If not, what about VS2012 or other higher version?
  • Splitview weird behavior

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    B
    Hi @Imynn , I just faced the same problem and was able to solve it the following way. The problem is that from the documentation there is always 1 element in a SplitView that fills the width (height for vertical). And by default it is the last one. By regulating that element depending on the window width you can choose which one changes width along with the window. So I set red.fillWidth to false and blue.fillWidth to true when the window width is less than the threshold. I even did smth like splitview.onResizingChanged: if (!resizing) userBlueWidth = blue.width; // saving the blue width on the splitter drag release fillerRectIndex: Window.width < userBlueWidth + splitter.width + red.minWidth ? blueIndex : redIndex Red { SplitView.fillWidth: fillRectIndex == redIndex } Blue { SplitView.fillWidth: fillRectIndex == blueIndex } Then the blue becomes the filler and starts shrinking. Good luck!
  • Problem using a QML plugin from Application

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    JianJianJ
    @stevemcgf thanks for your answer, just slove my problem!
  • This topic is deleted!

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

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
    No one has replied
  • QML and C++ model not shown

    Solved
    8
    0 Votes
    8 Posts
    738 Views
    jeremy_kJ
    @JonB said in QML and C++ model not shown: @Mick_1 This code's if (!parent.isValid()) return 0; looks like it was taken from a tree model, not a flat list like you want/have? This is also unworkable for a tree model, if the intention is to make the top level items of the tree viewable.
  • Any tool to flag QML file warnings?

    Solved
    10
    0 Votes
    10 Posts
    794 Views
    Tom assoT
    I submitted a bug/suggestion report
  • passing QDateTime into QML

    Solved
    3
    0 Votes
    3 Posts
    495 Views
    mzimmersM
    Not really a solution (more of a band-aid), but...I added properties to my clock for the parts of the date/time I needed: int m_minutes; Q_PROPERTY(int minutes READ minutes WRITE setMinutes NOTIFY minutesChanged FINAL) int m_hours; Q_PROPERTY(int hours READ hours WRITE setHours NOTIFY hoursChanged FINAL) and referenced them individually: property int minutes: clock.minutes property int hours: clock.hours Not a great fix, but it got me past the problem.
  • Modal Dialog Problem with QtQuickControls2

    Solved
    4
    2 Votes
    4 Posts
    3k Views
    R
    check this doc https://doc.qt.io/qt-6/qml-qtquick-controls-popup.html#closePolicy-prop
  • High memory usage using radius and opacity

    Unsolved
    1
    0 Votes
    1 Posts
    191 Views
    No one has replied
  • Settings and default ApplicationWindow position

    Solved
    7
    0 Votes
    7 Posts
    655 Views
    Axel SpoerlA
    @Kobid said in Settings and default ApplicationWindow position: MainWindow's onCompleted i called before Settings onCompleted. I temporary solved this issue by this: That makes sense, I overlooked the scope of Settings. It's unusual to make a settings object a child of a screen asset. I would actually place the settings object as a sibling of mainWindow assign the application name to category. That should solve your problem.
  • moveToThread to qml

    Unsolved
    1
    0 Votes
    1 Posts
    110 Views
    No one has replied
  • TextEdit and MouseArea

    Unsolved
    1
    0 Votes
    1 Posts
    138 Views
    No one has replied
  • Dynamic listview from json

    Unsolved
    3
    0 Votes
    3 Posts
    344 Views
    GrecKoG
    https://github.com/benlau/qsyncable does that
  • How to draw multiples mappolylines

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    D
    Instead of one MapPolyLine, you might try several (each with two points) , perhaps putting them in a Repeater