Results 1 to 3 of 3

Thread: QToolButton outside of QToolBar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Thanked 2 Times in 1 Post
    Qt products
    MacOS X Unix/X11 Windows

    Default QToolButton outside of QToolBar

    I'm stuck with Qt 4.8.6 for now.

    I'm using QToolButton controls without placing them inside a QToolBar. This seems to work well, except for one thing: icons for the "active" (hover) state are not shown. In other words, the icon of the QToolButton doesn't change when the mouse cursor is hovering above it. It works fine if I place the QToolButton inside a QToolBar, but in my case the styling of the QToolBar is undesirable and it doesn't look like I'm fully able to cancel it.

    Any help would be very much appreciated!

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 777 Times in 767 Posts
    Qt products
    Windows Android

    Default Re: QToolButton outside of QToolBar

    The toolbar most likely has a slot that is connected to the QAction::hover() signal, and it is in this slot where the button's state icons are changed.

Similar Threads

  1. Replies: 2
    Last Post: 10th October 2013, 16:08
  2. Unable to add QToolButton to QToolbar on QWidget
    By rawfool in forum Qt Programming
    Replies: 0
    Last Post: 17th August 2012, 11:52
  3. Hiding a QToolButton in a QToolBar
    By elcuco in forum Qt Programming
    Replies: 3
    Last Post: 24th November 2009, 21:35
  4. drag and drop QToolButton in QToolBar
    By NBilal in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 21:11
  5. Need help with QToolButton
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2006, 15:55

Tags for this Thread


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.