Results 1 to 7 of 7

Thread: Resizing and full screening of window.

  1. #1
    Join Date
    Apr 2010
    Posts
    19
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Resizing and full screening of window.

    Hi,

    I wanted to block a full screen and resizing option and I think that I did it not very well.

    Fundamentally, full screen button on bar is disabled, but unfortunately in Windows Vista is enabled.

    About resizing:

    I made a window of size: 300px x 200px. In main.cpp i put:

    Qt Code:
    1. w.setFixedSize(300,200);
    To copy to clipboard, switch view to plain text mode 

    In case of this line above, the window is unable to resize, but there are 6 dots in right-bottom corner of window, and when I toggle mouse on it, they are showing the arrows of resizing (but same process of resize is unable, what I wrote before).

    Is there any way to fix it cosmetically ?

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Resizing and full screening of window.

    I don't get that behavior*, but on 7 (but shouldn't be a big difference) first check what other flags your window has, and if everything is ok with that, make a small test app (something like: one label in a widget and just the setFixed size) and if that has the same behavior, post it here.

    *The maximize button appears (but it's disabled) and there are no dots and no resize arrows.

  3. #3
    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: Resizing and full screening of window.

    Try to disable the size grip of your status bar. QStatusBar::setSizeGripEnabled();

  4. The following 2 users say thank you to Lykurg for this useful post:

    Rewo (8th July 2010), Zlatomir (8th July 2010)

  5. #4
    Join Date
    Apr 2010
    Posts
    19
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resizing and full screening of window.

    QWidget is ok - hasn't got any dots or arrows, but in above case I use QMainWindow. Is it the cause of showing dots/arrows ?

  6. #5
    Join Date
    Apr 2010
    Posts
    19
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resizing and full screening of window.

    Quote Originally Posted by Lykurg View Post
    Try to disable the size grip of your status bar. QStatusBar::setSizeGripEnabled();
    It looks like it helped. Thank You

  7. #6
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Resizing and full screening of window.

    Sorry, my bad,
    Lykurg advice should fix this

  8. The following user says thank you to Zlatomir for this useful post:

    Rewo (8th July 2010)

  9. #7
    Join Date
    Apr 2010
    Posts
    19
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resizing and full screening of window.

    Quote Originally Posted by Zlatomir View Post
    Sorry, my bad,
    Lykurg advice should fix this
    It did well

Similar Threads

  1. Resizing a maximized, custom-frame window
    By Claymore in forum Qt Programming
    Replies: 9
    Last Post: 24th November 2010, 18:17
  2. Replies: 3
    Last Post: 2nd March 2010, 20:58
  3. Resizing window depending on QTableView
    By Ferric in forum Newbie
    Replies: 2
    Last Post: 9th February 2010, 04:17
  4. [QT4] Any way to disable window resizing ?
    By Amalsek in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2006, 11:36
  5. how to display a window full screen??
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2006, 12:07

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.