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. Grow Qml Text uniformly from the center when animating font.pixelSize
Forum Updated to NodeBB v4.3 + New Features

Grow Qml Text uniformly from the center when animating font.pixelSize

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 241 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
    Andreas Schacherbauer
    wrote on last edited by
    #1

    Hi, when I animate the font.pixelSize property of a Qml Text object, it grows from the upper left corner to the lower right. But I want it to grow uniformly from the center in all directions. Is there a setting to do this without changing x and y position of the text?

    Thx
    Andi

    J.HilkJ 1 Reply Last reply
    0
    • A Andreas Schacherbauer

      Hi, when I animate the font.pixelSize property of a Qml Text object, it grows from the upper left corner to the lower right. But I want it to grow uniformly from the center in all directions. Is there a setting to do this without changing x and y position of the text?

      Thx
      Andi

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @Andreas-Schacherbauer
      don't use x or y for positioning, use anchors.centerIn: parent, that should do the trick


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1

      • Login

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