Results 1 to 2 of 2

Thread: How to disable window size management due to a mouse double click ?

  1. #1
    Join Date
    Jan 2006
    Posts
    162
    Thanks
    9
    Qt products
    Qt3
    Platforms
    Windows

    Default How to disable window size management due to a mouse double click ?

    Hi everybody,

    I have a small problem. I have an application whose main window can be maximized or minimized (in fact it is restored in the default minimum size) after the user double click the title bar.

    I must disable this behaviour because the application's main window must not be resized neither moved.

    What I did is :
    * set the size policy to fixed
    * set the fixed size

    It half works because the application is not resized anymore but it is still moved ... the upper left corner of the application's main window is moved to the upper left corner of the screen.

    It is a big application, not well designed so the method are not usually at the good place so it hard to find them ... especially because I am not sure what method to find

    So, here are my questions :
    * what must I disable to respond to my need ?
    * which methods are called ?
    * which slots / signals / event should I look at in the code ?

    Thanks by advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to disable window size management due to a mouse double click ?

    The easiest solution is to remove the title bar completely by passing appropriate window flags to the window constructor.

Similar Threads

  1. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 04:32
  2. Replies: 2
    Last Post: 24th July 2006, 18:36
  3. Replies: 5
    Last Post: 12th January 2006, 15:40

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.