Exporting C ++ objects to HTML / JS is not directly possible with QWebEngine.
Instead, the new QWebChannel provides a bridge between HTML / JS and C ++. See the documentation , especially for examples. There was also a good opening talk about this year's QWebChannel Qt Developer Days, which may also be of interest to you. Talking videos will be released online in a few weeks.
source share