Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Problem with Installing application @ device that use .cpp and .qml file
Forum Update on Monday, May 27th 2025

[SOLVED] Problem with Installing application @ device that use .cpp and .qml file

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chronoske
    wrote on 15 Sept 2011, 04:37 last edited by
    #1

    Hi, I'm in process of trying app in device. This app using .qml file for show images that downloaded from ftp but I'm confused about how to bring .qml file while installing application. Because the problem is in the .qml file that cannot be used after installing application.
    Thanks for your help.

    [Alicemirror: this questions regards installation and deployment instead this forum section. I'll move it there]

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on 15 Sept 2011, 05:46 last edited by
      #2

      I can`t understand your question. Why .qml file cannot be used after installation? Does file should be changed somehow or it is not installed?

      If it is he first variant you can use C++ to generate QByteArray with the QML code and use "void QDeclarativeComponent::setData ( const QByteArray & data, const QUrl & url )":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativecomponent.html#setData to load that code.

      If it is second variant you can use "resource file":http://doc.qt.nokia.com/latest/resources.html

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0
      • C Offline
        C Offline
        chronoske
        wrote on 15 Sept 2011, 08:34 last edited by
        #3

        Yes, I have just tried it and know it run... thx

        1 Reply Last reply
        0
        • T Offline
          T Offline
          task_struct
          wrote on 15 Sept 2011, 08:51 last edited by
          #4

          Please, prepend to thread title [Solved]

          "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

          • Linu...
          1 Reply Last reply
          0
          • C Offline
            C Offline
            chronoske
            wrote on 16 Sept 2011, 04:14 last edited by
            #5

            yeah, thx.

            1 Reply Last reply
            0

            1/5

            15 Sept 2011, 04:37

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved