Declare multiple png's on a path
Unsolved
General and Desktop
-
I have some tiles of my map, it is about 10 png. How can i declare them in a path?
```QString path = "file:///C:/Users/ilknu/Downloads/Maperitive-latest/Maperitive/output/1.1.png"; m_url = QUrl(path.arg(zoom).arg(grab.x()).arg(grab.y())); QNetworkRequest request; request.setUrl(m_url); request.setRawHeader("User-Agent", "The Qt Company (Qt Graphics Dojo 1.0"); request.setAttribute(QNetworkRequest::User, QVariant(grab)); m_manager.get(request); }
-
@suslucoder said in Declare multiple png's on a path:
How can i declare them in a path?
What does this mean?
Anyway, so far as I know, you have to get them one at a time.
-
@suslucoder said in Declare multiple png's on a path:
Doesnt it contains 3 png?
No
You should check the code to see what it does with that string.
%1, %2... are used to format string, see https://doc.qt.io/qt-5/qstring.html#arg