Ok so I managed to import the html by modeling my code similar to the example with:
QString code = QStringLiteral("qt.jQuery('#first_page').load('html/first_page.html');"); //you can even nest it with: QString code = QStringLiteral( "qt.jQuery('#first_page').load('html/first_page.html', ()=>{" "qt.jQuery('#border_content').load('html/border_content.html', ()=>{" //some other html "qt.jQuery('#last_page').load('html/last_page.html');" "});" "});" );unfortunately I now cannot use the qwebchannel.js script anymore and my css gets screwed :(
even loading it with:
did not help. Since it is a small project and I am on a short deadline right now I will put everything in one html file and mark this question als solved.