Results 1 to 6 of 6

Thread: Customize Application Window

  1. #1
    Join Date
    Dec 2007
    Posts
    119
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Customize Application Window

    I've realized an application and now I want customize how It appear....
    I want remove from titlebar the maximize button (only close button and minimiz button) because It is always showed at maximum size size. How can I do this?
    And...I want thet application window is always on top the task bar, simple I want that when I start the applicatio, the taskbar is alway hidden? Any idea?
    Last question...how can I get the size of the titlebar and change it like I preferr?

    P.S. Remember that I'm using Qt 3

  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: Customize Application Window

    Quote Originally Posted by fruzzo View Post
    I've realized an application and now I want customize how It appear....
    I want remove from titlebar the maximize button (only close button and minimiz button) because It is always showed at maximum size size. How can I do this?
    And...I want thet application window is always on top the task bar, simple I want that when I start the applicatio, the taskbar is alway hidden? Any idea?
    How about simply showing the window in full screen mode? QWidget::showFullScreen() should be able to do that.

    Last question...how can I get the size of the titlebar and change it like I preferr?
    You can't do that.

  3. #3
    Join Date
    Dec 2007
    Posts
    119
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Customize Application Window

    Quote Originally Posted by wysota View Post
    How about simply showing the window in full screen mode? QWidget::showFullScreen() should be able to do that.
    ok I now about it but the problem is that my application don't have a menu bar ( It's a simulation of a dedicated console) and so I need something to close the application and minimize without using a menu bar! Can I add a titlebar in a showFullScreen mode?

  4. #4
    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: Customize Application Window

    You can add some button or use a keyboard shortcut.

  5. #5
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default Re: Customize Application Window

    In Qt 4.3 you can get title bar's height :
    qApp->style()->pixelMetric(QStyle::PM_TitleBarHeight,NULL,NULL )

  6. #6
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Customize Application Window

    How about trying setWindowFlags ??
    You can use "Qt::Window| Qt::WindowMinimizeButtonHint" to disable the maximize button

    You can play more with the flags I guess

Similar Threads

  1. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  2. accessing my main application window widget
    By jayw710 in forum Newbie
    Replies: 8
    Last Post: 15th November 2007, 19:33
  3. Replies: 6
    Last Post: 3rd May 2007, 15:17
  4. Independant window in an application
    By titoo in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2007, 11:07
  5. Replies: 0
    Last Post: 21st February 2006, 16:30

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.