Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QToolbar on OSX: no hover effect

    General and Desktop
    qaction icon os x desktop qtoolbar
    2
    5
    1950
    Loading More Posts
    • 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
      Xanx last edited by Xanx

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • X
          Xanx last edited by Xanx

          @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 Reply Quote 0
          • X
            Xanx last edited by

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

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 1
              • First post
                Last post