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. QWidgets fade-in and out
Qt 6.11 is out! See what's new in the release blog

QWidgets fade-in and out

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 595 Views 1 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.
  • Fuel 0F Offline
    Fuel 0F Offline
    Fuel 0
    wrote on last edited by
    #1

    Im actually want to try to fade some QWidgets. I saw Examples on the Internet with fading Opacity of a QWidget of a Property. I dont try it yet, but i want to ask if my Idea works.

    My Plan is to set a vertical layout, with Example of 2 QWidgets. One is shown with maximum Height and the other is hidden with Height of Zero. Now i want to fade it and want to try to change the Height slowly from the shown and the hidden QWidget. The One that is shown decreases in Height and the hidden One increases in Height. My Target is to make a Fadeeffect from One to Antoher QWidget. Anyone has Experience with that or has build a similar Effect?

    Gojir4G 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      QAnimation works fine for small widgets. However, for larges ones, it tends to lag a bit.
      Anyway, this uses animation to slide open
      https://github.com/chrisaverage/burger-menu
      Fading Opacity also works but if in layout it will just fade to not visible but will not
      release it place in layout so not sure thats is what u are after.

      1 Reply Last reply
      1
      • Fuel 0F Fuel 0

        Im actually want to try to fade some QWidgets. I saw Examples on the Internet with fading Opacity of a QWidget of a Property. I dont try it yet, but i want to ask if my Idea works.

        My Plan is to set a vertical layout, with Example of 2 QWidgets. One is shown with maximum Height and the other is hidden with Height of Zero. Now i want to fade it and want to try to change the Height slowly from the shown and the hidden QWidget. The One that is shown decreases in Height and the hidden One increases in Height. My Target is to make a Fadeeffect from One to Antoher QWidget. Anyone has Experience with that or has build a similar Effect?

        Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #3

        @Fuel-0 PLease see my post here: https://forum.qt.io/topic/90169/how-to-show-a-text-for-3-sec/5

        1 Reply Last reply
        1
        • Fuel 0F Offline
          Fuel 0F Offline
          Fuel 0
          wrote on last edited by
          #4

          I have a QMainWindow with a QToolbar on the left Side and actually a QWidget on the right Side. Later i want to switch the QWidget on the right Side, when i press Buttons in the QToolbar to show Content.
          Its possible that the Content QWidgets on the right Side are Big and has more then 2-3 other Widgets. I just want to fade the Content on clicking the QToolbar. Im going to try it later. At the Moment im not really sure how i do that.

          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