Qt Forum

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

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

    Tools
    3
    9
    2660
    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.
    • B
      Bryan last edited by

      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 Reply Quote 0
      • S
        shoyeb last edited by

        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 Reply Quote 0
        • A
          andre last edited by

          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 Reply Quote 0
          • S
            shoyeb last edited by

            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 Reply Quote 0
            • B
              Bryan last edited by

              [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 Reply Quote 0
              • B
                Bryan last edited by

                [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 Reply Quote 0
                • B
                  Bryan last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • A
                    andre last edited by

                    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 Reply Quote 0
                    • B
                      Bryan last edited by

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