Results 1 to 4 of 4

Thread: Design Title bar for QWidet

  1. #1
    Join Date
    Jan 2013
    Location
    Bangalore
    Posts
    49
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Design Title bar for QWidet

    I want customized title bar for my QWidget.
    I have seen setTitleBarWidget(QWidget* ), but this is only for QDockWidget, I want it for QWidget.

    I want a window something like Qt result window (where we can see search result, Application output etc....). I want to design same window.
    Any suggestions how to achieve this. I am using Qt4.8.6 on SLES11 machine.


    My window should be with:
    -light black colored Title bar with 3 pushButtons on left side, minimize and close buttons on right side. (Not able to attach screenshot for some reason)
    -below with usual white space for other functionality.

    2) In Qt result window (please excuse me if this is not relevant name for this window) minimize button is some thing different ( ^ ), is this Icon available in Qt standard icons ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Design Title bar for QWidet

    What is the "Qt result window"?

  3. #3
    Join Date
    Jan 2013
    Location
    Bangalore
    Posts
    49
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Design Title bar for QWidet

    newSnip.PNG

    It is Application output window.
    I have attached the png file, please have a look.

    Thanks.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Design Title bar for QWidet

    Ok. You mean the widget that appears at the top of the Qt Creator Application output and similar screen areas. This is not a window (i.e. A parentless widget), and that is not the title bar (a window manager decoration on a window). It is just another heavily styled widget packed into a layout. If you want to see exactly how that widget was constructed you have access to the Qt Creator source. Possibly in this folder
    https://github.com/qtproject/qt-crea...ins/coreplugin
    But it will take quite a bit of digging and you will probably not be able to copy-and-paste

  5. The following user says thank you to ChrisW67 for this useful post:

    DURGAPRASAD NEELAM (28th May 2015)

Similar Threads

  1. QGroupBox's title
    By lzpmail in forum Newbie
    Replies: 2
    Last Post: 3rd June 2011, 02:00
  2. Windows Title
    By SteveH in forum Qt Programming
    Replies: 7
    Last Post: 22nd November 2010, 13:34
  3. Getting rid of Dialog Title Bar
    By skepticalgeek in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2010, 23:09
  4. Replies: 3
    Last Post: 5th October 2008, 23:41
  5. Title Bar Color
    By kaaty in forum Qt Programming
    Replies: 1
    Last Post: 8th December 2006, 16:32

Tags for this Thread

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.