Results 1 to 7 of 7

Thread: Frameless Window Helper

  1. #1
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Frameless Window Helper

    This class can be used to give move and resize ability to any top level QWidget with Qt::FramelessWindowHint flag set.

    No need to change your existing code.

    Its very easy to use. Just two lines of code.

    Qt Code:
    1. QWidget* myWidget = new QWidget;
    2. FramelessHelper fh;
    3. fh.activateOn(myWidget);
    To copy to clipboard, switch view to plain text mode 

    Only tested on Ubuntu 10.10.

    source http://qt-apps.org/content/show.php?content=138161

    PS -> Although its version 1.0, treat it as alpha quality code ( in other words, no testing done )

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Frameless Window Helper

    Good !!

    I will try this..

  3. #3
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Frameless Window Helper

    Awesome, this is exactly what I was looking for. I'll try it out later ;-)

  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Frameless Window Helper

    Fixed a small bug. If the widget is maximized/fullscreen then also the mouse pointer use to show resize.
    updated the source to 1.1. Find it at the same location.
    http://qt-apps.org/content/show.php?content=138161

    Any comment is most welcome.

  5. #5
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Frameless Window Helper

    tested it on windows and it works pretty good :-)

  6. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Frameless Window Helper

    thanks for testing it on windows Sven!!

  7. #7
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Frameless Window Helper

    Finally full feature set has been completed this weekend. 2.0 release contains rubberband support and activateOn() function works for multiple widgets.
    Also added a full demo of the class.

    here is the screenshot.
    Screenshot.png

    download from the same location.

Similar Threads

  1. Replies: 10
    Last Post: 26th October 2010, 00:59
  2. Debugger helper
    By JohnToddSr in forum Qt Tools
    Replies: 33
    Last Post: 16th June 2010, 00:19
  3. Resize handling of frameless window
    By Peppy in forum Qt Programming
    Replies: 5
    Last Post: 2nd June 2010, 21:48
  4. Replies: 0
    Last Post: 14th April 2010, 23:26
  5. KWin's shadows and frameless window
    By EuroElessar in forum KDE Forum
    Replies: 4
    Last Post: 12th July 2009, 17:16

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.