Results 1 to 1 of 1

Thread: statusBar()->showMessage - causing jitter on status bar icons

  1. #1
    Join Date
    Aug 2012
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default statusBar()->showMessage - causing jitter on status bar icons

    on my status bar i have a few buttons, i added them like this:

    Qt Code:
    1. QPushButton* pb = new QPushButton(statusBar());
    2.  
    3. QPixmap pixmap(icon);//the file name of the icon
    4. QIcon ButtonIcon(pixmap);
    5. pb->setIcon(ButtonIcon);
    6. QSize s(16,16);
    7. pb->setIconSize(s);
    8. QString tip(btnName);
    9. pb->setToolTip(tip);
    10. connect(pb, SIGNAL(clicked()), this, SLOT(statusBtnClicked()));
    To copy to clipboard, switch view to plain text mode 
    and later on i have an event onMouseMove, which basicly shows the mouse location on the status bar:

    statusBar()->showMessage(moustlocationStr);
    the buttons are displayed on the right side and the msg is on the left (by default) for some reason when i move the mouse and the msg of the mouse position changes, the left most icon jitters (moves a little bit to the side and quickly moves back to its place.)

    i have no idea why.

    any help?

    Thank you.

    Matt
    Last edited by high_flyer; 29th August 2012 at 12:09. Reason: code tags

Similar Threads

  1. Absurd behaviour with QstatusBar's showMessage
    By yagabey in forum Qt Programming
    Replies: 7
    Last Post: 2nd June 2012, 10:32
  2. When I use Listview with icons its causing memory leak
    By GuusDavidson in forum Qt Programming
    Replies: 4
    Last Post: 29th March 2011, 22:08
  3. Replies: 3
    Last Post: 8th July 2010, 07:41
  4. Replies: 2
    Last Post: 28th January 2010, 16:47
  5. QSystemTrayIcon::showMessage
    By radojkod in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2008, 13:13

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.