what error were u getting before editing the code ??
it was working fine for me...
what error were u getting before editing the code ??
it was working fine for me...
keep in mind that MouseMoveEvents only get passed when they move over the widget's editable boxes unless you have a mouse button pressed down.
Because of this, your scrollbars and stuff like that don't process mousemove or mousepress events, AFAIK. I would assume it's the same way with the titlebar.
Of course, I've never enabled mousemovement on a central widget so I don't know what kind of effect that will have on subchildren. Good luck getting this working.
Guys,
Thanks a lot for all the help! I finally implemented this.
1. Created a custom widget.
2. setGeometry( )
3. Displayed the widget
4. it _is_ true that the mouseMoveEvent did work ONLY on the parent form, and did not work when the mouse was over a child form (editable box, or anything else for that matter. in my case it was another widget). And truly, setting the mouse tracking to true for the parent widget did NOT work. but, when i also set the MouseTracking to true for the child widget, i found the PARENT widget getting singals of mouse movements on the child. To re-clarify, I set the setMouseTracking(true) in both the child and the parent widget, and implemented the mouseMoveEvent in the PARENT ONLY. and yet, on a mouseMove on the child, the function in the parent is always called.
Is this behavior normal? That's the question!
-vk
i dont know...
just tried to track in the code... what i was able to get is setAttribute is the function u have to dig for...
Happy digging in the code,,, or wait till someone answers![]()
let me look into setAttribute( ) function.
the behavior was really intriguing. and i tried replicating it again, and i was able to do so.
somehow setting the mousetracking of a child widget sends signals to the mouseMoveEvent function of the parent.
the experts should really explain this for the benefit of novices
-vk
viking (2nd April 2007)
This post is really helpful!
I applied it and it worked fine in Linux version.
However it does not work in windows!
the menu bar never appears, does this have to do with the coordinates of the windows screen?!
Bookmarks