Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
19.8k Topics 76.7k Posts
  • How is child property of type Item binded to parent?

    Unsolved
    1
    0 Votes
    1 Posts
    77 Views
    No one has replied
  • Qt 6.6 Camera supported features

    Unsolved
    4
    0 Votes
    4 Posts
    342 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
    241 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
    62 Views
    No one has replied
  • QPopup auto size to TableView

    Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • QML StackView Crash After Frequent Page Switching

    Solved
    4
    0 Votes
    4 Posts
    356 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
    2k Views
    JianJianJ

    @hvoigt got the same issue

  • Unable To Build Fresh QT Quick Application

    Unsolved
    6
    0 Votes
    6 Posts
    289 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
    335 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
    143 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
    417 Views
    D

    @GrecKo

    Wow, this looks interesting. Thanks for sharing

  • Getting data into QML ChartView with Repeater

    Unsolved
    2
    0 Votes
    2 Posts
    144 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

  • 0 Votes
    3 Posts
    143 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
    1k Views
    ekkescornerE

    Yep. Create a .pro and open from QtC

  • Curved rectangle fill animation

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

    Solved
    2
    0 Votes
    2 Posts
    103 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
    400 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
    324 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)
    }

  • How to place inside flickable other components

    Unsolved
    1
    0 Votes
    1 Posts
    84 Views
    No one has replied
  • 0 Votes
    10 Posts
    608 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.