Alright, let’s dig a little bit deeper, just as last time :
Coming back to the ApplicationsPage, on line 154 we see some property being set "currentSection": sectionName
, that seems interresting, let’s check what this is all about !
The property is for a component called applicationsSectionViewComponent
which is the component define on line 120, perfect, let’s see what kind of model it uses ! Line 124 model: stackView.appsModel.sections
, so it’s the appModel
of a component called stackView
let’s see where this is defined. (Btw, appsModel.sections, we might be on the good path here)
Line 26 stackView
is defined, let’s search it’s appModel
, line 73, and that’s something interresting, we still use a rootModel
but we call a method called modelForRow
which take an int
as argument.
Right now we can deduce that you could get the correct section by passing the correct int to this method and call it a day.

But what if I want to learn more about how this method work ? It’s sometimes important to fully understand the code, so let’s do this as an exemple !
We’re gonna go on the rootmodel.cpp file once again and search for modelForRow
. No result… That’s weird… Maybe rootModel is a subclass and the method is defined elsewhere then ?
Let’s check the header file of root model to see if it’s a subclass of something else ! Line 34 RootModel
is in fact an AppsModel
, sweet, maybe modelForRow
is in appmodel.cpp. And yep, line 285, we can see how this works

This time I only use the Ctrl + F
function of my web browser and navigate a bit inside gitlab to find this, nothing crazy. I hope this was helpful 
Btw, I don’t test what I find, so I might be wrong, I’m mainly pointing out what I think could work and showing how I usually work around those kind of problem