January 22, 2012

Pavel Mazniker Pavel Mazniker
Lab Rat
175 posts

[SOLVED]Simple QML application run but no view ( anything displayed ) on Symbian Anna operated device

 

Hello.

I am building applications. Recently I made simple qml application with next .pro file:

  1. # Add more folders to ship with the application, here
  2. #CONFIG += release qt-components
  3. QT +=  gui declarative
  4. # Additional import path used to resolve QML modules in Creator's code model
  5. QML_IMPORT_PATH = qml/common
  6.  
  7. symbian {
  8.    #message(Symbian)
  9.  
  10.    TARGET.UID3 = 0xE19618FC
  11.    #DEFINES += USE_DEVSOUND
  12.  
  13.    platform_qml.source = qml/symbian
  14.    platform_qml.target = qml
  15.    QML_IMPORT_PATH += qml/symbian
  16.  
  17.    INCLUDEPATH += /epoc32/include/mw
  18.  
  19. }
  20.  
  21. VERSION = 1.2.0
  22.  
  23. # Smart Installer package's UID
  24. # This UID is from the protected range and therefore the package will
  25. # fail to install if self-signed. By default qmake uses the unprotected
  26. # range value if unprotected UID is defined for the application and
  27. # 0x2002CCCF value if protected UID is given to the application
  28. #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
  29.  
  30. # Allow network access on Symbian
  31. #symbian:TARGET.CAPABILITY += NetworkServices
  32.  
  33. # If your application uses the Qt Mobility libraries, uncomment the following
  34. # lines and add the respective components to the MOBILITY variable.
  35. # CONFIG += mobility
  36. # MOBILITY +=
  37.  
  38. # Add dependency to symbian components
  39. #CONFIG += qtquickcomponents
  40.  
  41. # The .cpp file which was generated for your project. Feel free to hack it.
  42. SOURCES += main.cpp
  43.  
  44. # Please do not modify the following two lines. Required for deployment.
  45. include(qmlapplicationviewer/qmlapplicationviewer.pri)
  46. qtcAddDeployment()

The project contains 1 qml file and main.cpp and also qmlapplicationviewer module that is necessary to display qml ui.

I built it for Linux and it runs and displays the qml ui declared OK under ubuntu.

I need to run it on mobile device Symbian Anna operated – Nokia C700 has installed on it QtQuickComponents , QmlViewer , Qt 4.7.4 , QtMobility from .sis files.

I already built for that device QtDrumkit application and several another that uses qml and they run ok on the device.

But when I build the simple qml application mentioned above and create self-signed .sis file as for previous applications and deploy it to the device – the application is succes. installed but when I run it I see anything displayed – black screen .

Maybe images that I use in QML items wasn’t added ? How to add the images?
What could be the problem/issue here?
Does anybody know where there is a mistake during compiling and deploying that simple qml application ?

Thank you very much in advance for your help.

1 reply

January 22, 2012

Pavel Mazniker Pavel Mazniker
Lab Rat
175 posts

Recently solved the issue – images was added to the project and it was built – > ui displayed ok on the device. But when I added images to resource file than ui wasn’t displayed , why? Yet dn.

 
  ‹‹ [SOLVED] My app needs 20MB RAM to run      Qt App tries to connect to X server instead of Framebuffer on Ubuntu ››

You must log in to post a reply. Not a member yet? Register here!