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. MainToolBar first Item not clickable
Forum Updated to NodeBB v4.3 + New Features

MainToolBar first Item not clickable

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 6 Posters 2.2k Views 4 Watching
  • 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.
  • F Offline
    F Offline
    Fuel
    wrote on last edited by
    #1

    I have a strange Problem with my Toolbar. All Buttons in my Toolbar are working fine, but not the first one. The first Item is only clickable if i move the Mouse to the bottom Border of the Item. Then it becomes focused like on the Image below.
    0_1515778715202_Unbenannt.png

    I use the actual QT Creator and Qt 5.9.2 on Windows 10.

    Earlier, where i started the Project, i hadnt that Issue. But that was long ago. I noticed this Problem some Month ago, but now i want to fix it.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show how you setup your toolbar ?

      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
      • F Offline
        F Offline
        Fuel
        wrote on last edited by
        #3

        I use it with the Qt Designer. My Actions are made with it. But here is the Toolbar.

        0_1515791886800_Unbenannt2.png

        0_1515791892691_Unbenannt3.png

        S 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you share the widget header, cpp and ui file to test ?

          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
          • F Fuel

            I use it with the Qt Designer. My Actions are made with it. But here is the Toolbar.

            0_1515791886800_Unbenannt2.png

            0_1515791892691_Unbenannt3.png

            S Offline
            S Offline
            samdol
            wrote on last edited by
            #5

            @Fuel
            You may check whether you created some widgets which are not added to the layout yet. If there are any, add them to the layout.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fuel
              wrote on last edited by
              #6

              I made the Project Public for a few days. https://git.kubitox.com/Ben/KT

              mrjjM 1 Reply Last reply
              0
              • F Fuel

                I made the Project Public for a few days. https://git.kubitox.com/Ben/KT

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Fuel
                Hi
                Its not public. it asks for login.

                1 Reply Last reply
                0
                • yuvaramY Offline
                  yuvaramY Offline
                  yuvaram
                  wrote on last edited by
                  #8

                  Hi @Fuel
                  Try few cases in order check the issue,

                  1. Change position of "Ubersicht" from 1st position to 2nd and check the observation.
                    If the observation is same as previous, there is issue with Action.
                    If the observation is not same as previous and working as expected, there is issue with toolbar.

                  Which platform are you using?

                  Yuvaram Aligeti
                  Embedded Qt Developer
                  : )

                  1 Reply Last reply
                  0
                  • Chris KawaC Offline
                    Chris KawaC Offline
                    Chris Kawa
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Something similar happened to me once - it was a rogue transparent widget that someone forgot to put in a layout and so it stuck to the corner swallowing up mouse events.

                    There's an easy way to verify if that's the case. Set a stylesheet like this on the app object:
                    qApp->setStyleSheet("border: 1px solid red;")
                    If there's anything covering your toolbar you should see it now.

                    1 Reply Last reply
                    2
                    • F Offline
                      F Offline
                      Fuel
                      wrote on last edited by
                      #10

                      You were all right. There was two hide Qlabels that i forgot. I changed my Code and now it works. Totally forgot it. Thanks to all

                      1 Reply Last reply
                      0

                      • Login

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