Results 1 to 3 of 3

Thread: ResizeEvent frame vs window content

  1. #1
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default ResizeEvent frame vs window content

    Could someone please tell me how to make my application so that when i resize the window it is only a frame until i let go? That way a PaintEvent isn't happening as i resize.

    I'm using 3.3.2 for this specific project.

    Thank you.
    Last edited by bitChanger; 14th March 2006 at 14:16.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: ResizeEvent frame vs window content

    Can you give more explain what you want to do
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: ResizeEvent frame vs window content

    In Windows XP for example there is a checkbox that for effects called: show window contents while dragging. If this is unchecked then a window will only display a frame while resizing, then fill in the window when you let go of the mouse. This is an OS feature not Qt. So I'm trying to find a way in Qt to get the application to simply not repaint the window until the mouse is let go on a resize.

    mouseReleaseEvent only works inside the window, so that did'nt work.

    I thought I could simply ignore the resizeEvent if the mouse button was down but I can't find a way to query the mouse to see if it is pressed. (after researching i don't think this is possible at this time, mice work on event triggers for buttons not queries)

    So I'm not sure of a solution for this.

    Any thoughts?

Similar Threads

  1. How to set Qt window transparent?
    By montylee in forum Qt Programming
    Replies: 17
    Last Post: 24th December 2013, 20:11
  2. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 20:17
  3. Image without window frame?
    By niky in forum Qt Programming
    Replies: 6
    Last Post: 3rd February 2008, 09:37
  4. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  5. Main Window frame height
    By ^NyAw^ in forum Qt Programming
    Replies: 18
    Last Post: 13th November 2007, 12:14

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.