Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7495899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:22:48+00:00 2026-05-29T18:22:48+00:00

I am developing app for Android. And as some of members suggested to use

  • 0

I am developing app for Android. And as some of members
suggested to use QML for gui design I came to this problem.
When I load app on desktop everything goes nicely. But problem is when
porting it on Andorid.
Here is my error:

`W/Qt      ( 1819): file:///data/data/org.kde.necessitas.example.Imenik/files/gui.qml:` 
File not found

And my code to start QML is :

QDeclarativeView view; 
     view.setSource(QUrl::fromLocalFile("gui.qml")); 
     view.show(); 

This is my pro file:

SOURCES += main.cpp mainwindow.cpp 
HEADERS += mainwindow.h 
FORMS += mainwindow.ui 
QT += \ 
      network \ 
      xml \ 
      declarative 

I really don’t know where the problem might be. I have tried run it as desktop app and everything works nicley. but cannot port it on android.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:22:51+00:00Added an answer on May 29, 2026 at 6:22 pm

    Probably your QML file is not deployed on the phone.

    Add something like

    QML_FILES.source = qml
    QML_FILES.target = .
    DEPLOYMENTFOLDERS += QML_FILES
    
    # Please do not modify the following two lines. Required for deployment.
    include(qmlapplicationviewer/qmlapplicationviewer.pri)
    qtcAddDeployment()
    

    to your .pro file. Make sure the last two lines are at the end. This works for Symbian and Harmattan, maybe deployment is a little different with Necessitas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some problem with developing an android app. Everything runs smooth until a
I am developing some app for android which worked well untill this evening. However
I am developing an Android app and want to share some text by opening
im developing a app in Android. in this project im using a List of
I' m developing an Android app wich requires me to use a Database. After
I am developing an app for android where I need some data from a
I am developing an app where I have to lock some android default Apps
I'm developing a little Android app with some square buttons created dynamically from Java
I am developing one android app in that i have to post some message
I am developing an android app. for mathematical calculations. There I have some buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.