Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Gauges in QML with Three.js
Forum Updated to NodeBB v4.3 + New Features

Gauges in QML with Three.js

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 707 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hi,

    I'm using Qt.createQmlObject to create a gauge and then pipe the QML object to a texture in three.js using THREE.QtQuickItemTexture. I want to access some properties of gauge but having trouble doing so. Specifically items inside of GaugeStyle like tickmark and tickmarkLabel
    tickmarkLabel:

    tickmarkLabel: Text {
       id: text
       text: styleData.value
       color: "#000000"
       x: 15
    }
    tickmark: Rectangle {
       implicitHeight: 1
       implicitWidth: 6
       antialiasing: true
       color: "#000000"
    }
    

    Specifically I want to be able to modify the color property programmatically in JavaScript. I normally do this using the property alias but when I try to use it for these color properties it says anything within style: GaugeStyle is undefinated. My structure is:

    Rectangle 
    {
    //some property alias
       Gauge
       {
       //some anchors
          style: GaugeStyle
          {
              valueBar: { //some code }
              tickmarkLabel: Text { color: //some color }
              tickmark: Rectangle { color: //some color }
              minorTickmark: Rectangle { color: //some color }
          }
       }
    }
    

    Thank you for reading and any help you may provide.

    Dan_

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved