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. Animate window height without affecting layout?
Forum Updated to NodeBB v4.3 + New Features

Animate window height without affecting layout?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 232 Views 2 Watching
  • 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.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by
    #1

    I need to animate a notification window's height from zero to actual height. But need to do it without having the layout change during animation - layout should assume original height from the start - so controls don't move during animation.

    How is that do-able?

    SGaistS 1 Reply Last reply
    0
    • T Taytoo

      I need to animate a notification window's height from zero to actual height. But need to do it without having the layout change during animation - layout should assume original height from the start - so controls don't move during animation.

      How is that do-able?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the top of my head, one possible way is to have your "main widget" as a child of a container widget. You then apply the animation to that container.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        From the top of my head, one possible way is to have your "main widget" as a child of a container widget. You then apply the animation to that container.

        T Offline
        T Offline
        Taytoo
        wrote on last edited by
        #3

        @SGaist Placed everything inside a widget, its working fine now.

        1 Reply Last reply
        0
        • T Taytoo has marked this topic as solved on

        • Login

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