Rendering of the View on Screen
-
wrote on 8 Apr 2021, 09:52 last edited by Anita 4 Aug 2021, 17:24
Hi All,
When I click a button in my application, there are multiple actions which happens.
Task1 : changing the state of button ,
Task2: opening of a Menu in a loader,
Task 3: after the Menu Loader state is changed to Ready , there is a repositioning that occurs in other fields in the UI.
So my question is when will I be able to view the Menu on the screen, After Task1, Task2 and Task3 or immediately after Task2? -
Hi All,
When I click a button in my application, there are multiple actions which happens.
Task1 : changing the state of button ,
Task2: opening of a Menu in a loader,
Task 3: after the Menu Loader state is changed to Ready , there is a repositioning that occurs in other fields in the UI.
So my question is when will I be able to view the Menu on the screen, After Task1, Task2 and Task3 or immediately after Task2?hi @Anita
that highly depends on how you "execute those tasks"
But as a rule of thumb, Showing any widget/qml component is done on the next event loop cycle. So probably T1-> T2->T3 -> Shown
-
wrote on 9 Apr 2021, 07:01 last edited by
@J-Hilk
Thank You . For Clarification.
1/3