> On 13 Aug 2025, at 11:30, Giuseppe D'Angelo via Development > <development@qt-project.org> wrote: > > More on topic: if ultimately it is platform specific whether show() alone is > sufficient or one needs show()+requestAcivate() (+ QVERIFY), couldn't this > combination be packaged in some QtTest helper function, so that people can > simply call that function and it'll always do the right Yes. Though we should stive to use it only when the test actually requires focus. Running tests locally with windows that steal focus unnecessarily is a bit annoying. Of course these things are typically cargo-culled, which is how we probably ended up with the current state of every test requesting activation explicitly after show. Tor Arne -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Calling QWindow::requestActivate after QWindow::show and before QTest::qWaitForWindowActive
Tor Arne Vestbø via Development Wed, 13 Aug 2025 02:40:40 -0700
- Re: [Development] Calling QWind... Axel Spoerl via Development
- Re: [Development] Calling Q... Ilya Fedin
- Re: [Development] Calli... Axel Spoerl via Development
- Re: [Development] ... Ilya Fedin
- Re: [Developme... Axel Spoerl via Development
- Re: [Developme... Ilya Fedin
- Re: [Development] Calling Q... EXT Mitch Curtis via Development
- Re: [Development] Calli... Axel Spoerl via Development
- Re: [Development] ... Moss Heim via Development
- Re: [Developme... Giuseppe D'Angelo via Development
- Re: [Developme... Tor Arne Vestbø via Development
- Re: [Developme... Giuseppe D'Angelo via Development
- Re: [Developme... Shawn Rutledge via Development
- Re: [Developme... Axel Spoerl via Development
- Re: [Developme... Moss Heim via Development
- Re: [Development] Calling QWindow::reque... Ilya Fedin