Re: [Interest] QML window icon

2013-02-01 Thread Mark Summerfield
Hi Samuel, On Thu, 31 Jan 2013 13:38:22 +0100 Samuel Rødal wrote: > On 01/29/2013 01:42 PM, Mark Summerfield wrote: > > Hi, > > > > I am trying to create a "pure" QML program, so may main.cpp is simply: > > > > #include > > #include > > #include > > int main(int argc, char

Re: [Interest] QML window icon

2013-01-31 Thread Samuel Rødal
On 01/29/2013 01:42 PM, Mark Summerfield wrote: > Hi, > > I am trying to create a "pure" QML program, so may main.cpp is simply: > > #include > #include > #include > int main(int argc, char *argv[]) > { > QGuiApplication app(argc, argv); > QQmlEngine engine;

Re: [Interest] QML window icon

2013-01-30 Thread Alan Alpert
On Wed, Jan 30, 2013 at 12:58 AM, Mark Summerfield wrote: > Hi Alan, Shawn, > > [snip] > > I tried doing the icon in C++ (on debian stable 64-bit, Qt 5.0.0): > > int main(int argc, char *argv[]) > { > QGuiApplication app(argc, argv); > QQuickView view(QUrl("qrc:/test.qml"))

Re: [Interest] QML window icon

2013-01-30 Thread Mark Summerfield
Hi Alan, Shawn, [snip] I tried doing the icon in C++ (on debian stable 64-bit, Qt 5.0.0): int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQuickView view(QUrl("qrc:/test.qml")); view.setTitle("Test"); view.setIcon(QIcon(":/test.png"));

Re: [Interest] QML window icon

2013-01-29 Thread 1+1=2
Hi, For Windows user, you can create a xxx.rc file which contains the icon file path maunlly, then assign it to the qmake's variable RC_FILE. Or, from Qt5.0.2 on, you can simply assign the icon file path to qmake's variable RC_ICON RC_ICON = a.ico Regards, Debao On Wed, Jan 30, 2013

Re: [Interest] QML window icon

2013-01-29 Thread Alan Alpert
On Tue, Jan 29, 2013 at 11:05 AM, Rutledge Shawn wrote: > Mark Summerfield writes: >> I am trying to create a "pure" QML program, so may main.cpp is simply: >> >> #include >> #include >> #include >> int main(int argc, char *argv[]) >> { >> QGuiApplication app(argc, arg

Re: [Interest] QML window icon

2013-01-29 Thread Rutledge Shawn
Mark Summerfield writes: > I am trying to create a "pure" QML program, so may main.cpp is simply: > > #include > #include > #include > int main(int argc, char *argv[]) > { > QGuiApplication app(argc, argv); > QQmlEngine engine; > QQuickView view(&engine, 0)

[Interest] QML window icon

2013-01-29 Thread Mark Summerfield
Hi, I am trying to create a "pure" QML program, so may main.cpp is simply: #include #include #include int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlEngine engine; QQuickView view(&engine, 0); view.setSource(QUrl("qrc