Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QPopup auto size to TableView

    Unsolved qml tableview popup
    1
    0 Votes
    1 Posts
    214 Views
    No one has replied
  • QML StackView Crash After Frequent Page Switching

    Solved
    4
    0 Votes
    4 Posts
    540 Views
    I
    @iliya-faramarzi Apologies for the confusion about the styles—that was on me. Thanks so much for your help!
  • 0 Votes
    5 Posts
    3k Views
    JianJianJ
    @hvoigt got the same issue
  • Unable To Build Fresh QT Quick Application

    Unsolved
    6
    0 Votes
    6 Posts
    413 Views
    Axel SpoerlA
    The issues are just a summary of the compile out put. It’s Tab Nr. 4 according to your screen shot.
  • scaled Texts look terrible even when zooming out

    Unsolved
    7
    1 Votes
    7 Posts
    516 Views
    B
    If I force software rendering via QQuickWindow::setGraphicsApi, I don't see the ugly text. However, I do see it with both Vulkan and OpenGL rendering on Linux (on my Intel GPU). I did just make a breakthrough, though. If I set QT_FONT_DPI=120, as ChatGPT suggested, the issue goes away (on the QML Label, not on the Canvas). Maybe this is a known issue on Intel GPU? My Qt app detects logical DPI as 96 and physical DPI as 78.7852.
  • help me fix the coloring on non-native FileDialog

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    B
    At least there's a bug filed for it: https://bugreports.qt.io/browse/QTBUG-122738
  • ListModel and JSON Parsing in QML

    Solved
    6
    0 Votes
    6 Posts
    918 Views
    D
    @GrecKo Wow, this looks interesting. Thanks for sharing
  • Getting data into QML ChartView with Repeater

    Unsolved
    2
    0 Votes
    2 Posts
    253 Views
    B
    Nevermind, I implemented my own QQuickItem which uses the QML scene graph, following this example: https://doc.qt.io/qt-5/qtquick-scenegraph-customgeometry-example.html
  • On ubuntu,QML SystemTrayIcon set visible value false, icon no hidden

    Unsolved
    3
    0 Votes
    3 Posts
    209 Views
    G
    Hi, On Qt 5.15.9 version,Ubuntu 22.04 , GNOME Desktop Manager. SystemTrayIcon{ id: sysTray visible: systemTrayMode iconSource: "../image/logo.png" menu: Menu { MenuItem { text: qsTr("Show Application") onTriggered: { mainwindow.show() mainwindow.raise() mainwindow.requestActivate() } } MenuSeparator{ } MenuItem { text: qsTr("Quit") onTriggered: Qt.quit() } } onActivated: { if(Qt.platform.os !== "osx"){ mainwindow.show() mainwindow.raise() mainwindow.requestActivate() } } onMessageClicked: { mainwindow.show() mainwindow.raise() mainwindow.requestActivate() } Component.onCompleted: { } } Connections{ target: AppSettings function onHasSystemTrayIconChanged() { if (systemTrayMode) { sysTray.show() } else { sysTray.hide() } } } After sysTray is displayed, no matter how the systemTrayMode changes, sysTray will not hide.
  • `QML_IMPORT_PATH` has no effect

    Unsolved
    8
    1 Votes
    8 Posts
    2k Views
    ekkescornerE
    Yep. Create a .pro and open from QtC
  • Curved rectangle fill animation

    Unsolved
    2
    0 Votes
    2 Posts
    152 Views
    No one has replied
  • Missing QQmlApplicationEngine

    Solved
    2
    0 Votes
    2 Posts
    154 Views
    SGaistS
    Hi and welcome to devnet, You shouldn't need to add the module to your include. Are you sure your project is properly setup ?
  • Exposing already defined enum to QML

    Unsolved
    7
    0 Votes
    7 Posts
    684 Views
    GrecKoG
    @TomZ said in Exposing already defined enum to QML: enums are always a mess, basically the general idea to have a clean namespace with enums doesn't work with QML. It does work fine with namespaces. Q_ENUM needs to be made in the scope where the enum was defined though, it doesn't work with an already defined enum. And this requirement exists for both object/gadgets and namespaces. The code you linked would have been fine with a namespace. Also don't use qmlRegister*** in Qt 6, QML_*** are preferred.
  • Dynamic QML for each item of list view

    Unsolved
    5
    0 Votes
    5 Posts
    534 Views
    dheerendraD
    Your connect is executed multiple time. Hence it is executed multiple time. If you do 10 time, it will execute 10 times as well :). I'm not sure what is the semantics of the connect here ? What is deviceList ? Where is the method qFanPropsUpdate(). Since you are disconnecting it perfectly ok. Component.onCompleted: { deviceList.forwardDevicePropertyChanged.connect(qtFanPropsUpdate) }
  • 0 Votes
    10 Posts
    1k Views
    B
    @JonB It appears the problem was in my testing after updating the latest code here (Also it was always 10,000 data points, I wrongly wrote it as 1000.. I over-worked this issue. I will mak an edit. ). CPU usage has come down to 18% from 60%. I had done following things- Moved LineSeries update to backend LineSeres clear + append is replaced with replace Qt is upgraded to 6.8.0 I am not sure which one out of this helped but results look better now. Thank you so much everyone who spent their efforts to read my long question and provide amazing ideas. Appreciate it.
  • QMLLS not finding manual C++ registrations

    Solved qml qmlls cpp registration class
    4
    0 Votes
    4 Posts
    615 Views
    ekkescornerE
    instead of setContextProperty() you should use QML_SINGLETON see: https://t1p.de/ekkeQML_SINGLETON
  • How to Run a batch file from inside a QML file.

    Unsolved
    6
    0 Votes
    6 Posts
    448 Views
    M
    @JoeCFD Hi, Thank you, I will try using QProcess.
  • QML assert_imports created by QT Design Studio is not installed in QT Creator

    Unsolved
    3
    0 Votes
    3 Posts
    336 Views
    C
    I solved it in other way. I create a QML project by qt design studio rather than qt creator frist. Then, I added some 3D assets in the project by qds. After that, I used qt creator opened this project and those 3D assets were represented successfully. By the way, if you want to create a QML project by qt design studio, you need click File -> Export Project -> Enable Automate Generation after build a qds project, and then you will find a qml project organized by cmake file.
  • importing QtQuick.Dialogs gives many ambiguous type warnings

    Unsolved
    2
    2 Votes
    2 Posts
    398 Views
    C
    Some additional info or more like a warning. This crashes the qml language server and if the server is not running, every ctrl+click on your own qml files opens them from the build folder instead of the source folder. And then you basically edit a temp file.
  • ChartView with multiple selectable LineSeries

    Unsolved
    2
    0 Votes
    2 Posts
    411 Views
    T
    Hello, Sorry I could not answer your question! But btw, I new to PySide and QML, could you share me how to visible LineSeries to the chart, when I set 'useOpenGL: true', it could not render to GUI. Could you share me your code above?