Skip to content

Commit 7bdb766

Browse files
committed
changed svg to png for better platform compatibility
1 parent e403f7c commit 7bdb766

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ int main(int argc, char *argv[])
2828
qmlRegisterType<FileIO>("FileIO", 1, 0, "File");
2929

3030
QQmlApplicationEngine engine;
31-
engine.addImportPath(".");
32-
engine.addPluginPath(".");
31+
//engine.addImportPath(".");
32+
//engine.addPluginPath(".");
3333
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
3434

3535
return app.exec();

qml.qrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<file>qml/main.qml</file>
44
<file>qml/Pin.qml</file>
55
<file>qml/Port.qml</file>
6-
<file>qml/BBB_shape.svg</file>
76
<file>qml/Legend.qml</file>
87
<file>qml/pinmux.txt</file>
98
<file>qml/ToolTip.qml</file>
@@ -14,5 +13,6 @@
1413
<file>qml/colormap1.txt</file>
1514
<file>qml/colormap2.txt</file>
1615
<file>qml/Functions.js</file>
16+
<file>qml/BBB_shape.png</file>
1717
</qresource>
1818
</RCC>

qml/BBB_shape.png

30.7 KB
Loading

qml/main.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ ApplicationWindow {
271271

272272
Image {
273273
anchors.fill: parent
274-
source: "BBB_shape.svg"
274+
source: "BBB_shape.png"
275275
fillMode: Image.PreserveAspectFit
276276

277277
TextInput {

0 commit comments

Comments
 (0)