Results 1 to 11 of 11

Thread: Disable Move option in window

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Disable Move option in window

    Qt Code:
    1. void XXX::moveEvent(QMoveEvent *event)
    2. {
    3. if (QPoint(100,100) != event->pos())
    4. move(QPoint(100,100));
    5. }
    To copy to clipboard, switch view to plain text mode 

    or you can use a frameless window.

  2. The following user says thank you to Lykurg for this useful post:

    BalaQT (27th December 2009)

Similar Threads

  1. Double click resize window disable
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2008, 11:35
  2. How do I natively move a QWidget top-level window?
    By codeslicer in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2008, 21:08
  3. Replies: 1
    Last Post: 9th February 2007, 09:41
  4. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  5. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 18:22

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.