Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Qt 6.6 Camera supported features

    Unsolved
    4
    0 Votes
    4 Posts
    472 Views
    D
    Was there ever a response to this issue? Any camera I query returns no supportedFeatures. Camera enumeration and image capture works fine but regardless of camera no controls work, Exposure, WhiteBalance, Zoom, etc.
  • timing of sizing calculations

    Solved
    5
    0 Votes
    5 Posts
    341 Views
    mzimmersM
    @GrecKo said in timing of sizing calculations: The ListView has no width set in the code you pasted. Right you are. I added explicit width to the ListView, and it now seems to size properly. I guess the console logs I put in were a bit misleading. Thanks!
  • RHI uploadTexture failed in MacOS Metal backend

    Unsolved
    1
    0 Votes
    1 Posts
    102 Views
    No one has replied
  • QPopup auto size to TableView

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

    Solved
    4
    0 Votes
    4 Posts
    531 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
    515 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
    910 Views
    D
    @GrecKo Wow, this looks interesting. Thanks for sharing
  • Getting data into QML ChartView with Repeater

    Unsolved
    2
    0 Votes
    2 Posts
    246 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
    208 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
    675 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
    531 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
    614 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
    445 Views
    M
    @JoeCFD Hi, Thank you, I will try using QProcess.