Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QToolbar on OSX: no hover effect
QtWS25 Last Chance

QToolbar on OSX: no hover effect

Scheduled Pinned Locked Moved Unsolved General and Desktop
qactioniconos xdesktopqtoolbar
5 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xanx
    wrote on 26 Jan 2016, 19:57 last edited by Xanx
    #1

    Hello! I'm experimenting with Qt and I want to create a toolbar with some actions. I've successfully done it:

    but when I point a particular element with mouse pointer there is no hover effect:

    On the other hand a tooltip is shown and once I clock on the icon triggered() event is fired.

    To me it looks very strange, I believe this is wrong behavior. How can I enable the hover effect?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Jan 2016, 23:33 last edited by
      #2

      Hi and welcome to devnet,

      IIRC there's no such effects on OS X. What version of OS X are you running ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xanx
        wrote on 27 Jan 2016, 08:40 last edited by Xanx
        #3

        @SGaist

        Hello! Thanks for the reply. I'm using the last OS X, El Capitan. You have confused me, I was sure there is such an effect there. I have googled about that and found this picture:

        But I'm not sure which OS X version is depicted there.

        In any case, if I remove icon and use text labels, when label is hovered it changes its colour, so it seems there should be such an effect.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          Xanx
          wrote on 28 Jan 2016, 15:42 last edited by
          #4

          It seems no one can help me with that. That's pity.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 28 Jan 2016, 21:04 last edited by
            #5

            Please have some patience, this forum is community driven and not all users live in the same timezone as you.

            The picture you are linking to doesn't show a hovered button but a checked button. You will have that visual effect if you set the checkable property of the action to corresponding to the button as true and you check it.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            3/5

            27 Jan 2016, 08:40

            • Login

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved