Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT I want to add icon dynamically
Forum Updated to NodeBB v4.3 + New Features

QT I want to add icon dynamically

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 861 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.
  • A Offline
    A Offline
    amarism
    wrote on last edited by
    #1

    I want to set the icon of a button dynamically and that icon is fixed for every system. An example I have fix icon in my system and the same icon is open in another system when I am sending the release file including icon folder to another user. I am using QT5.10.1 and window 10.

    1 Reply Last reply
    0
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      So you want an image included in your binary, but dynamic based on something? States and transitions sounds the way.

      https://qmlbook.github.io/en/ch05/index.html#states-and-transitions

      References:
      http://doc.qt.io/qt-5/qtquick-statesanimations-animations.html
      http://doc.qt.io/qt-5/qml-qtquick-propertyaction.html
      http://doc.qt.io/qt-5/qml-qtquick-propertyanimation.html

      Taz742T 1 Reply Last reply
      0
      • 6thC6 6thC

        So you want an image included in your binary, but dynamic based on something? States and transitions sounds the way.

        https://qmlbook.github.io/en/ch05/index.html#states-and-transitions

        References:
        http://doc.qt.io/qt-5/qtquick-statesanimations-animations.html
        http://doc.qt.io/qt-5/qml-qtquick-propertyaction.html
        http://doc.qt.io/qt-5/qml-qtquick-propertyanimation.html

        Taz742T Offline
        Taz742T Offline
        Taz742
        wrote on last edited by
        #3

        @6thC
        But he did not say using QML.

        Do what you want.

        1 Reply Last reply
        0
        • 6thC6 Offline
          6thC6 Offline
          6thC
          wrote on last edited by 6thC
          #4

          This is true, but I don't see any widget code either...
          [edit]clafication: I was telling him a way, not every way and the technology was ambiguous at the moment[/]

          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