Results 1 to 2 of 2

Thread: QML based project deployment problem

  1. #1
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QML based project deployment problem

    Hi
    I wanted to release my QML based project . In the target computer I could run the program but none of the pictures were loaded ! I didn't use resource system and my pictures are in a folder called 'images' next to the main.qml qml file and the source of the Image element is:
    Qt Code:
    1. source:"images/back.jpg"
    To copy to clipboard, switch view to plain text mode 
    The main qml file is loaded in the QMLViewer using the following code :
    Qt Code:
    1. QmlApplicationViewer *_viewer = new ...;
    2. _viewer->setMainQmlFile(QLatin1String("qml/MyCompany/main.qml"));[B]//images folder is in qml/MyCompany directory[/B]
    To copy to clipboard, switch view to plain text mode 
    QmlApplicationViewer is a class that is created automatically by Qt.
    Is this a well known problem for QML?
    How can I solve it ?
    thanks


    Added after 16 minutes:


    The stranger thing is that the deployed version works in my computer and every thing loads correctly !
    Last edited by .:saeed:.; 17th September 2012 at 15:12.
    Impossible = I'mpossible

  2. #2
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QML based project deployment problem

    The problem has been solved
    I should have copied qjpeg4.dll in imageformats folder besides .exe file.
    Impossible = I'mpossible

Similar Threads

  1. Replies: 1
    Last Post: 1st September 2012, 20:41
  2. Replies: 1
    Last Post: 6th April 2012, 01:08
  3. Replies: 0
    Last Post: 27th March 2012, 09:51
  4. QCA based application deployment problem
    By npclaudiu in forum Installation and Deployment
    Replies: 1
    Last Post: 14th May 2010, 11:10
  5. Qwt based project compile problem
    By MarkoSan in forum Qwt
    Replies: 0
    Last Post: 28th September 2009, 16:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.