Results 1 to 2 of 2

Thread: Frame around whole statusbar

  1. #1
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Frame around whole statusbar

    Hi,

    I would like to add frame around whole status bar. Same properties like for QFrame (panel, sunken...).
    Is there any easy way how to implement this?

    I try to design frame with some widgets and then add to status bar with addWidget() property but status bar remain empty.

    Thanks in advance

    Marek

  2. #2
    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: Frame around whole statusbar

    An easy approach would be to subclass QStatusBar and reimp the paint event. There draw your frame using QStylePainter and then call the base class implementation.

  3. The following user says thank you to Lykurg for this useful post:

    binaural (22nd April 2010)

Similar Threads

  1. Video Parsing - Frame by Frame
    By ctote in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2010, 18:30
  2. statusbar
    By bhogasena in forum Qt Programming
    Replies: 7
    Last Post: 3rd February 2009, 14:54
  3. Designer and statusbar
    By zolookas in forum Qt Tools
    Replies: 3
    Last Post: 27th June 2008, 13:56
  4. Previous frame inner to this frame(corrupt stack?)
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 28th May 2007, 01:35
  5. Previous frame inner to this frame(corrupt stack?)
    By coralbird in forum Qt Programming
    Replies: 17
    Last Post: 29th April 2006, 01:42

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.