Results 1 to 6 of 6

Thread: Custom Window Decoration?

  1. #1
    Join Date
    Mar 2009
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Custom Window Decoration?

    Is it possible to make change window decoration with a custom made, or maybe style it. Like window live messenger.

  2. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Custom Window Decoration?

    Yes, if you call QWidget::setWindowFlags(Qt::FramelessWindowHint) it will remove the system window. You can implement your own after that, however you want to do it. But you will have to do everything: moving the window when the user clicks and drags, resizing it when the user resizes, closing and minimizing...etc.

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: Custom Window Decoration?

    I know that it is a little bit old Threat, but is there a Tutorial or How To, which describes the way how to do this?
    Can I use the "Simple Decoration Example" from the Qt Help, as starting point, or is this a Qt Embedded only Example?
    Last edited by MaciekMucha; 10th July 2010 at 10:42.

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

    Default Re: Custom Window Decoration?

    It's embedded only. You can start by having a look at our wiki, there are examples (even complete solutions) on how to do that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2011
    Posts
    18
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Custom Window Decoration?

    Quote Originally Posted by wysota View Post
    You can start by having a look at our wiki, there are examples (even complete solutions) on how to do that.
    i'm sorry but i think i'm blind.... where are these examples?

    thanks in advance!

  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: Custom Window Decoration?

    Quote Originally Posted by raven-worx View Post
    i'm sorry but i think i'm blind.... where are these examples?

    thanks in advance!
    Here !!
    Hint : ARGB widgets...

Similar Threads

  1. Widget without window decoration in windows
    By jiveaxe in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2008, 20:25
  2. Mdi Window decoration
    By kalpa in forum Qt Programming
    Replies: 1
    Last Post: 7th May 2007, 09:19
  3. qtopia window decoration cannot show caption
    By qtopiahooo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 13th March 2007, 08:09
  4. window decoration cannot show caption
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 31st January 2007, 08:17
  5. Main window with custom buttons ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2006, 06:32

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.