Results 1 to 10 of 10

Thread: An app is hearing you?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: An app is hearing you?

    Quote Originally Posted by fullmetalcoder View Post
    Everyone is limited on time. However, AFAIK you don't have any big projects under development ATM, do you?
    Depends what you consider a project. Actually I have two - one is my PhD studies and responsibilities that go with it and the other is a telecom project I'm taking part in. Apart from that I have three smaller projects, all regarding Qt.

    There is already some minimalistic animation when hiding the "ear" (smooth move to the center of the main window then hide) but it can be improved (for example gradual hiding using QWidget::setMask(). The only problem here is that I don't know how to generate a proper mask... (which value implies transparency and what's the best way to generate such a dynamic mask...)
    Masking is not the way to go. I know how to make the animation as I use such thing in one of my projects. The only problem is to determine the size the widget will have when fully opened. Unfortunately, before the widget is shown for the first time, it doesn't have its size and layout determined. And that makes it hard to prepare the animation. When I manage to solve the problem with my widget, I'm sure I can write an animation effect for your widget in no time.

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: An app is hearing you?

    Quote Originally Posted by wysota View Post
    Depends what you consider a project. Actually I have two - one is my PhD studies and responsibilities that go with it and the other is a telecom project I'm taking part in. Apart from that I have three smaller projects, all regarding Qt.
    Beg your forgiveness... You must be quite busy indeed!

    Quote Originally Posted by wysota View Post
    Masking is not the way to go. I know how to make the animation as I use such thing in one of my projects. The only problem is to determine the size the widget will have when fully opened. Unfortunately, before the widget is shown for the first time, it doesn't have its size and layout determined. And that makes it hard to prepare the animation. When I manage to solve the problem with my widget, I'm sure I can write an animation effect for your widget in no time.
    Nice! But why wouldn't masking fit? How do you want to do gradual hiding without mask or tricky paint event??? Or are you talking about a different animation?
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: An app is hearing you?

    Quote Originally Posted by wysota View Post
    Masking is not the way to go. I know how to make the animation as I use such thing in one of my projects. The only problem is to determine the size the widget will have when fully opened. Unfortunately, before the widget is shown for the first time, it doesn't have its size and layout determined. And that makes it hard to prepare the animation. When I manage to solve the problem with my widget, I'm sure I can write an animation effect for your widget in no time.
    I've just played with the concept of masking and here comes the result : http://edyuk.tuxfamily.org/misc/kula...nimated.tar.gz
    Current Qt projects : QCodeEdit, RotiDeCode

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.