[Development] Qt 5.2, activeFocusItem, QMenu and QMenuItem (bug)

Alan Ezust alan.ezust at gmail.com
Sun Apr 6 21:19:18 CEST 2014


See this bug:
https://bugreports.qt-project.org/browse/QTBUG-36332


On Sun, Apr 6, 2014 at 8:33 AM, Hamidreza Davoodi <hrdavodi at gmail.com>wrote:

> Hello there,
> I'm encountering a problem with activeFocusItem in QQuickItem.
> According to this example [1], when you click on something and menu
> appears, it should be enabled. It actually did work in Qt 5.1 but not in Qt
> 5.2.
> I debugged it and found out when menu raises the activeFocusItem loses the
> last item which in this context is a TextInput and returns null (and also
> quite possibly the menu itself gets focused on).
>
> Is this a reported bug? cause I couldn't find anything like this.
> Is there solution?
>
> [1]
> http://doc.qt.digia.com/qt-5.2/qtquickcontrols-controls-gallery-main-qml.html
>
> --
> Yours Sincerely,
>
> Hamidreza Davoodi
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140406/e91c0731/attachment.html>


More information about the Development mailing list