Help with Slate Tree View

I have a list of inventory items (widgets) which I want to show in a tree. I guess I can use Slate: However, I’m not sure how to use it - create a .h file in the Source directory with this code?

I guess the widgets should be of Slate Widget Style.

Any help is highly appreciated.


Check out STestSuite.cpp file. theres a bunch of Slate widget exmples including SListView and STreeView.
You can find it under Engine\Source\Runtime\AppFramework\Private\Widgets\Testing\STestSuite.cpp