Display data from multiple models using Listview

Is it possible to display data from multiple models in a single view using ListView widget?

Sure! What is your need?

This is my query-

$query=(new Query())->select(‘a.,b.’)->from([‘table1 a’,‘table2 b’]);

$dataProvider = new ActiveDataProvider([

        'query' => '$query',


    ]);

I want to display data from table1 and table2 using Listview.

Thanks.