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:
QFile script_file(":/qtwebchannel/qwebchannel.js");
if(!script_file.open(QIODevice::ReadOnly))
qDebug()<<"Couldn't load Qt's QWebChannel API!";
QString qt_script = QString::fromLatin1(script_file.readAll());
script_file.close();
view->page()->runJavaScript(qt_script);
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.