Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Designer 4.8.0 - Unable to use mouse in form, only tab key
QtWS25 Last Chance

Designer 4.8.0 - Unable to use mouse in form, only tab key

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 3.1k 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.
  • B Offline
    B Offline
    Bryan
    wrote on last edited by
    #1

    Hello,

    I have a multipart form that I created in Designer. In one section of the form I can only navigate using the tab key (Windows) but the mouse has no effect. In the other sections (read layouts) I am able to use both mouse and tab key.

    I am unable to see any differences between the two in the property editor.

    Any thoughts?

    -Bryan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shoyeb
      wrote on last edited by
      #2

      just a rough idea..
      u might have disabled the mouseEvent() on one part of the form...

      There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        We'll need to have access to a small, yet complete and compilable example showing this behavior in order to help you.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shoyeb
          wrote on last edited by
          #4

          without code we cant tell wat the problem is...

          There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Bryan
            wrote on last edited by
            #5

            [quote author="Andre" date="1329898415"]We'll need to have access to a small, yet complete and compilable example showing this behavior in order to help you. [/quote]

            Thanks Andre. If I could isolate the offending block to the point of providing a succinct sample I'm sure I could find the root cause. I'll look at it again this morning while I am fresh.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bryan
              wrote on last edited by
              #6

              [quote author="shoyeb" date="1329896790"]just a rough idea..
              u might have disabled the mouseEvent() on one part of the form...
              [/quote]

              None of the groupBoxes had mouseTracking set but only one was failing.

              I moved the entire groupBox and layout to another part of the window, then I dragged the groupBox back and then dragged the layout contents into the groupBox. It solved the problem. Previously I had dragged the groupBox over the existing layout. Maybe that is a no-no.

              Oddly, it all worked fine in the "Preview" window. It was only when run live in code that it failed.

              It is working fine now.

              In the future, is it best to post the contents of the .ui file here?

              -Bryan

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Bryan
                wrote on last edited by
                #7

                In the future is it better to provide contents from the .ui file or C code?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  Yes, that would be good to do. If possible, put it somewhere where others can download it, and just post a link to it. I usually use my public Dropbox folder for that.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Bryan
                    wrote on last edited by
                    #9

                    I was asking an "or" question as to which is better but if I use Dropbox I guess I can provide both. Great idea!

                    Thanks!

                    -Bryan

                    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