Results 1 to 2 of 2

Thread: forecolor of statusbar

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default forecolor of statusbar

    Hi,
    How can I change the forecolor of statusbar in QT? I need to display the messages in statusbar in white color.
    Please help me
    ...............

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: forecolor of statusbar

    HI,

    Have you tried any of this:

    QWidget::setFont(QFont(..) ); // your font color
    QWidget::setPalette(QPalette(Qt::white,Qt::white);

    ?
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

Similar Threads

  1. statusBar() message color change
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 23:20
  2. Replies: 2
    Last Post: 7th January 2007, 21:07
  3. How to update statusbar and tooltips
    By aamer4yu in forum Qt Programming
    Replies: 9
    Last Post: 21st December 2006, 12:38
  4. problem with statusbar
    By philipp1 in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2006, 07:12

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.