Results 1 to 12 of 12

Thread: Ugly move with a top-level setMasked widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    53
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Ugly move with a top-level setMasked widget

    Hi,

    I've searching a lot in the forum but I don't think I've found something interesting regarding it.

    I have made a simple top-level wndow with a custom shape using a QLabel, a QPixmap and the so famous setPixmap et SetMask(pixmap.mask()).

    I've too, as in the shaped clock example, implemented the mouseMoveEvent and mousePressEvent in order to move the window.

    It seems to really sucks if I move the window over some other apps (for example Visual Studio or Firefox). A picture is better than words (as it's hard to explain for a non native english people ;o)) so look at the attached image.

    This effect is drastically intensified if I move the mouse fast but even if I try to move slowly, this problem appears really soon...

    However, if I move it on the Windows desktop, it move smoothly !

    I wonder if it's related to Qt as I've tried a fancy WinAMP skin and this problem were here too but a lot lesser visible.

    Is there a way I can solve it ?

    Curiously, with a star example I've found on this forum, there is no problem even if the source code is the same ! Could it be due to the size of the image or if the source PNG is not smoothly anti-aliased on the edge of the shape ?
    Attached Images Attached Images
    Last edited by nooky59; 17th December 2007 at 11:13. Reason: updated contents

Similar Threads

  1. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.