Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can anybody tell me how to implement the graphics in my project
Forum Updated to NodeBB v4.3 + New Features

Can anybody tell me how to implement the graphics in my project

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 283 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.
  • Y Offline
    Y Offline
    YogeshR
    wrote on last edited by
    #1

    Screenshot (19).png

    how to code for graphics and animation after this step for a graphics instrument cluster please tell me.

    jsulmJ G 2 Replies Last reply
    0
    • Y YogeshR

      Screenshot (19).png

      how to code for graphics and animation after this step for a graphics instrument cluster please tell me.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @YogeshR Please ask a better question. What exactly you need help for?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y YogeshR

        Screenshot (19).png

        how to code for graphics and animation after this step for a graphics instrument cluster please tell me.

        G Offline
        G Offline
        giantguppy
        wrote on last edited by
        #3

        @YogeshR Connect each of your dial's 'valueChanged' signals to a slot. Slot can either be a lamda block...

        connect(EngineOilDial, &QDial::valueChanged, [=](int value) {
            // do something with value
        }
        

        or a custom class method...

        connect(EngineOilDial, &QDial::valueChanged, this, &MyClass::onEngineOilChanged);
        
        ...
        
        void MyModel::onEngineOilChanged(int value)
        {
            // do something with value
        }
        

        Or if you have a model object with setters for these properties you can connect them directly

        connect(EngineOilDial, &QDial::valueChanged, model, &MyModel::setEngineOil);
        

        If you were using QML this could be done even easier with property binding.

        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