Results 1 to 2 of 2

Thread: Need a Label Below the toolbar buttons

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Need a Label Below the toolbar buttons

    Hi,

    I need a common label for all my five toolbuttons , just below the five buttons, to be precise below the third button.
    What i want is on mouse hover of first button the label of third will show the name of first button.
    how can i achieve this .
    QT::setButtonStyle is of no help........
    Always Believe in Urself
    Merry

  2. #2
    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: Need a Label Below the toolbar buttons

    Thats a lengthy task I guess.
    You will need to create a QLabel, add it in a vertical layout with the toolbuttons.
    Override the enter and leave events for the tool buttons and emit signal to update the text of the QLabel.

    Shorter way -
    Why dont you use QToolTip or QStatusTip ??

Similar Threads

  1. Checkable and exclusive Actions (Toolbar buttons)
    By winder in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2010, 02:59
  2. tool buttons on top of label
    By McKee in forum Qt Programming
    Replies: 5
    Last Post: 2nd November 2008, 16:07
  3. qt3 to qt4 conversion: no toolbar buttons
    By hugo vanwoerkom in forum Qt Programming
    Replies: 9
    Last Post: 25th October 2007, 17:07
  4. Replies: 4
    Last Post: 19th November 2006, 20:24
  5. label
    By mickey in forum Qt Programming
    Replies: 10
    Last Post: 8th June 2006, 18:58

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.