<div dir="ltr">Hi Miklos,<div><br></div><div>I've noticed that odd behavior but I haven't found the time to investigate much further than what you already did. </div><div>My gut feeling is that it can't get focus because the popup window is not "active" (only 1 window can be active at a time ?).</div>
<div>You might have to play with activateWindow() or something like that.</div><div><br></div><div>Hth,</div><div>Julien.</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 12:28 PM, Miklos Espak <span dir="ltr"><<a href="mailto:espakm@gmail.com" target="_blank">espakm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I have a drop down control panel with some slider widgets on it.<br>
<br></div>If I click into the spinbox, it should get the keyboard focus and the cursor should start blinking, but it does not. I can select the number by mouse, but cannot type anything into it.<br>
<br></div>If I place the control panel on an ordinary QWidget, all works fine.<br><br></div>I added an event filter to the line edit of the spin box to see if it gets the mouse pressed event. It does. But it does not get the FocusIn event. If I put the control panel an a QWidget, then the ctkDoubleSpinBox gets the FocusIn event.<br>
<br></div>Has anybody tried to use a ctkDoubleSpinBox or similar on a ctkPopUpWidget?<br><br></div>Any idea, why there the no FocusIn event is not emitted / received if the spinbox is on a popup widget, even if the mouse press event definitely arrives to the line edit?<br>
<br></div>Cheers,<br>Miklos<br><br></div>
<br>_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
<br></blockquote></div><br></div></div>