Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Custom image linear gauge possible?



  • I was wondering if its possible to recreate a Linear Gauge I made in SIM Racing software. I have spent hours trying to recreate this Gauge in Qt but no luck.

    In the sim racing dash studio this was very easy to make. I just set a Linear Gauge with value from 0 - 100 and set a Gauge Image on the Linear Gauge to this PNG

    MoTeC-SW-02.png

    For the outline I use another layer with just a image
    MoTeC-SW-01.png

    Together with background they look like this

    c054dac0-b1f1-4846-90ad-c8bee8890798-image.png

    I am trying to recreate this in Qt trying a Gauge and adding background image to Gauge or GaugeStyle, trying horizontal or vertical orientation, & trying to find a similar question for custom image on a linear gauge with no luck. Maybe it's not possible with Gauge in Qt? How else can I do this then?. Hopefully someone can help :(