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



  • 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



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



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



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



  • [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.



  • [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



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



  • 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.



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.