I am developing an Qt Quick Application where I am serving "main.qml" file over network:
QQuickView vv;
vv.engine()->setNetworkAccessManagerFactory(new MyFactory());
vv.setSource(QUrl("http://192.168.1.101/main.qml"));
vv.showFullScreen();
main.qml file is :
import QtQuick 2.7
import QtQuick.Window 2.2
Image
{
id :pencere
width: Screen.width
height: Screen.height
source: "back.png"
}
I created file server using HFS tool.
I am running my application,it fetches qml file from server.Application starts with a white screen,waiting for a long time than loads image and shows it.As the output shows,it requests for image file very long time after main.qml is requested :
Why it requests for image 1 MINUTES later than qml file? How to reduce that duration?
This is happening too,if I set an image on the internet.I am sure that there is no problem about HFS.