Results 1 to 5 of 5

Thread: Window without a exit button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Window without a exit button

    This is probably a simple question, but does anyone know how to change a dialog widget so that it doesn't have a x button on the window title bar. I want the ability to have the window title bar, without any buttons on it.

    Thanks,

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Window without a exit button

    Unfortunately this is not an easy question. It depends on the window manager you use. Usually you manipulate your window decorations with the Qt::WindowFlags. However, some window manager seem to ignore certain settings.

  3. #3
    Join Date
    Feb 2007
    Posts
    13
    Thanks
    2

    Default Re: Window without a exit button

    redhat 9 and cent os using gnome

  4. #4
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: Window without a exit button

    Don't know Gnome, so I cannot say much about it. But I suppose it is similar to KDE in this regard. Those full desktop environments usually have their own ideas how to decorate windows. If you think about it, it is logical. Gnome and KDE are not simple window managers, but a complete system with a consistent look and feel. Now suppose every program is able to implement its own idea how a window looks like an behaves.

    As I said, I don't know Gnome, so I might be totally wrong here, but it might be impossible to remove the X with Qt methods. However, you can block the close event.

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

    Default Re: Window without a exit button

    Or you could just use a set of windowflags that make sure "Qt::WindowSystemMenuHint" is not set.

Similar Threads

  1. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  2. How to "hide window when close button pressed"
    By iGoo in forum Qt Programming
    Replies: 4
    Last Post: 26th July 2006, 09:53
  3. How to capture exit slot of main window
    By jyoti kumar in forum Newbie
    Replies: 2
    Last Post: 31st May 2006, 07:06
  4. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21
  5. use button from another Window
    By raphaelf in forum Qt Programming
    Replies: 11
    Last Post: 2nd March 2006, 20:31

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.