View Single Post
Old 04-16-2024, 03:11 PM   #82
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,444
Karma: 5703082
Join Date: Nov 2009
Device: many
Update: It seems that you actually can use tab to shift focus on buttons inside a QDockWidget by using setTabOrder.

The issue is that if the QDockWidget has a QtWebEngine as part of the setTabOrder (like our Preview does) the tab order is broken by the QtWebEngine as it literally creates its own render widget as its focus proxy widget (a QQuickWidget) on fly and it can recreate it as needed to handle rendering.

This changes the focus chain on the fly breaking any previously setTabOrder.

So getting the Preview's own toolbar buttons to handle tab shifting focus would be a real bear probably either requiring moving it to the top of the QDockWidget and/or making sure all buttons are created first before the QtWebEngineWidget.

Not something for a minor point update release anyway.

Wow this tab shift to move focus is not easy to change or control because of lots of special cases and corner cases. Especially involving QtWebEngine.

Last edited by KevinH; 04-16-2024 at 03:14 PM.
KevinH is offline   Reply With Quote