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. How to change font.pointSize with animation?
Forum Updated to NodeBB v4.3 + New Features

How to change font.pointSize with animation?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 645 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.
  • M Offline
    M Offline
    Mayron
    wrote on 12 Mar 2020, 14:45 last edited by
    #1

    I need this Text to change the size value every 10 seconds with animation.

    Text {
    id: time
    x: 765
    y: 15
    color: "#fff"
    font.pointSize: 25
    visible:true
    }

    J 1 Reply Last reply 12 Mar 2020, 14:48
    0
    • M Mayron
      12 Mar 2020, 14:45

      I need this Text to change the size value every 10 seconds with animation.

      Text {
      id: time
      x: 765
      y: 15
      color: "#fff"
      font.pointSize: 25
      visible:true
      }

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Mar 2020, 14:48 last edited by
      #2

      @Mayron https://doc.qt.io/qt-5/qml-qtquick-animation.html maybe?

      Text {
      id: time
      x: 765
      y: 15
      color: "#fff"
      font.pointSize: 25
      NumberAnimation on font.pointSize {
              running: myMouse.pressed
              from: 8; to: 25
          }
      visible:true
      }
      

      You would need to change running: part.

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

      M 1 Reply Last reply 12 Mar 2020, 15:16
      4
      • J jsulm
        12 Mar 2020, 14:48

        @Mayron https://doc.qt.io/qt-5/qml-qtquick-animation.html maybe?

        Text {
        id: time
        x: 765
        y: 15
        color: "#fff"
        font.pointSize: 25
        NumberAnimation on font.pointSize {
                running: myMouse.pressed
                from: 8; to: 25
            }
        visible:true
        }
        

        You would need to change running: part.

        M Offline
        M Offline
        Mayron
        wrote on 12 Mar 2020, 15:16 last edited by
        #3

        @jsulm thanks, It worked!!

        1 Reply Last reply
        1

        1/3

        12 Mar 2020, 14:45

        • Login

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