Results 1 to 11 of 11

Thread: Disable Move option in window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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)

  3. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Disable Move option in window

    Thnks Lykurg
    Its working.
    I want one more option.
    since the EVENT places the form in new position,
    the form is flickering while trying to MOVE. The window is fixed but flickering occurs.
    Is there any way to Disable the MOVE option in the MENU [which comes by pressing ALT + SPACE BAR.]
    My window is : Frameless MDI window.

    im using the setWindowFlags(Qt::FramelessWindowHint);
    But it will be helpful,if we can disable the MOVE option in the menu.

    Thnks
    Bala
    Last edited by BalaQT; 27th December 2009 at 11:52.

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.