Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.6k Posts
  • [Solved] Qt application run on Qt5.3.0 is slower than run on Qt4.8.4

    9
    0 Votes
    9 Posts
    4k Views
    D
    Thanks for everybody's reply. I solved this problem! Like I said before, I found that the application would search all the events under the /dev/input, even you don't use any input event plugin (tslib, evdevtouch, evdevkeyboard...etc). This would cause the app delay to show. Therefore, I traced the source code to find where the setting is, and finally I found that in the following code: //Qt5.3/qtbase/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp in this file, the function QDeviceDiscovery::scanConnectedDevices() would search /dev/input/ This code finally will be compiled and package as libQt5PlatformSupport.a and the platform eglfs will use this. In the file Qt5.3/qtbase/src/plugins/platforms/eglfs/qeglfsintegration.cpp, if there is no export variable set, that is, QT_QPA_EGLFS_DISABLE_INPUT, the plugin will set the variable mDisableInputHandlers to be false. This flag finally will start to search all event under /dev/input, and hence slow down the app to show. In fact, I tried that before I ran the app, I set the export: export QT_QPA_EGLFS_DISABLE_INPUT=1 and the app would show within 4,5 sec. This proved the setting indeed affect the speed. Of course, this time still did not satisfy me, so I still used the tool strace to find another possibility. Finally I found that the font would cause the delay too. In my platform, the original font is DroidSansFallback.ttf in the /usr/local/Qt5.3/lib/fonts. When I selected another font, msyh.ttf. It was apparently that the app will show within about 1 sec. That is what I want. :) By the way, if I choose this font, there is no difference that set the path in the file /etc/fonts/font.conf, that is, even I set the path to be /usr/share/fonts. The speed seems no much difference. Finally, let me make 2 short conclusions: set the flag QT_QPA_EGLFS_DISABLE_INPUT to be true, that is, export QT_QPA_EGLFS_DISABLE_INPUT=1 before start to run the app. 2.check what the font you used at least, use msyh.ttf is faster than DroidSansFallback.ttf in my platform. I am not sure that the above comments are totally right or not, so if someone finds any wrong, please also let me know. Thanks for everybody's opinion!
  • Build for iPhone simulator error for QPrinter and QPrintDialog

    3
    0 Votes
    3 Posts
    1k Views
    P
    Thx for the reply. Wonder why that would be? Lots of wireless printers..not like there needs to be a hard-wire connection. I guess I will try the QPdfWriter class...
  • Qml TableView dynamic row height

    4
    0 Votes
    4 Posts
    4k Views
    K
    Hi, SGaist. Yes, I can. Here is the simple project: https://www.dropbox.com/s/vitelj126rak9vt/TableView-sample.zip?dl=0
  • "Mailto:" Problem

    3
    0 Votes
    3 Posts
    2k Views
    G
    Thanks for your reply. Your reply guided me to the correct answer.. For the interest of others: It is not the '?' but the '&' following it, which was creating the problem. (maps?&daddr) The '&' in the hyperlink gets misinterpreted by the mail client, so I encoded it as @% 26@ which solved this problem.
  • Qt applications resource hungry?

    2
    0 Votes
    2 Posts
    951 Views
    timdayT
    Lowest-end HW I'm using Quick and QML on is an iPad with an A6X CPU (OK admittedly that's still quite a bit more powerful than a Pi) and I haven't seen anything at all which makes me think "OMG this is so bloated/glitchy/inefficient I wish I was using a different, leaner framework". IMHO the Qt combo of native C++ code to make most efficient use of the CPU and memory (no GC nonsense) where needed, a graphics engine (QSG) which can (simultaneously) exploit any GPU resources, and the mutability of QML to develop fast is a fantastic combination (aim to do as much as possible in QML+JS, and use custom C++ QML plugins only for the bits of your app which need it).
  • [fixed] Qt5.5 App fails on Android outside QtCreator

    2
    0 Votes
    2 Posts
    880 Views
    R
    It think it was QTBUG-42251. Apparently fixed in 5.4, the fix is now merged back into dev (5.5).
  • Qml in C++/Qt on Android not visible

    4
    0 Votes
    4 Posts
    2k Views
    metaDomM
    check this bug: https://bugreports.qt-project.org/browse/QTBUG-41467
  • How to integrate QT with novint falcon?

    8
    0 Votes
    8 Posts
    2k Views
    S
    Yes, the file exists. I had to copy all the header files into the same folder.* However, it recognises the library files. * @TEMPLATE = app TARGET = cube4 QT += 3d SOURCES = cubeview.cpp main.cpp haptics.cpp HEADERS = cubeview.h haptics.h src/haptics.h src/adll.h src/afuncs.h src/atypes.h src/avars.h src/glut.h src/StdAfx.h hdl/hdl.h hdl/hdlConstants.h hdl/hdlErrors.h hdl/hdlExports.h hdlu/hdlu.h hdlu/hdluExports.h HEADERS += Widget.h RESOURCES = cube.qrc win32:LIBS += $$quote(C:/Program Files/Novint/HDAL_SDK_2.1.3/lib/hdl.lib) INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdl") INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/include/hdlu") INCLUDEPATH += $$quote("$$PWD/../../../../Program Files/Novint/HDAL_SDK_2.1.3/examples/Basic/src") INCLUDEPATH +="C:/Program Files/Novint/HDAL_SDK_2.1.3/include" @
  • Wouldn't it be nice if there was a qmlscene for iOS in the appstore...

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    Nice ! Thanks for sharing :)
  • Qt 5.3.2 android app not receiving gesture event.

    2
    0 Votes
    2 Posts
    1k Views
    D
    Upon further review, my problem was more specific to not receiving swipe events on the android platform. Tap and TapAndHold work, for example. What I ended up doing was creating my own swipe gesture recognizer based on this code: http://developer.nokia.com/community/wiki/Custom_Swipe_Gestures_in_Qt There are a couple of easily fixed bugs in that code, but it seems to work just fine.
  • Which is the equivalent of QWSServer::setBackground inside qt5 ?

    15
    0 Votes
    15 Posts
    8k Views
    A
    There is no equivalent. You can create a fullscreen widget that just fills itself with the desired color.
  • Displaying position cordinates in a map

    1
    0 Votes
    1 Posts
    520 Views
    No one has replied
  • Is Qt5 works for Android 2.2.1

    3
    0 Votes
    3 Posts
    1k Views
    A
    Hi, Thanks. Sincerely
  • Receiving no events in QQuickItem

    2
    0 Votes
    2 Posts
    733 Views
    W
    Answering myself. The QQuickItem lives within a SilicaFlickable. SilicaFlickable picks up the events.
  • QtMock

    4
    0 Votes
    4 Posts
    2k Views
    JKSHJ
    You're welcome :) I have no experience with gmock/gtest, but they seem to be well-documented: https://code.google.com/p/googlemock/
  • Basic Question regarding mobile application

    4
    0 Votes
    4 Posts
    1k Views
    A
    @Gianluca, Thank you so much. Do you have any links regarding SMS/MMS server and how to configure? If yes, plz forward. Thanks a ton.
  • How can I cross-compile QT 5.0?

    32
    0 Votes
    32 Posts
    44k Views
    T
    Hi SGaist, Its been while we are communicating on the issue about how to successfully build and deploy the Qt application on the Arm board but nothing is coming up fruitful. I was wondering how best you can provide the help about the Qt? Is it possible for you to provide some step by step guide, I also saw few of your communication with other interested people and those were left without fruitful outcome. say I want to build application and deploy on the board: what are the things that I have to enable in kernel config, at the Qt config level and how to deploy application and deploying the Qt frame work: On the board my file system is mounted through NFS, like this: bin, dev, etc, lib, proc, sbin, srv, sys, tmp, usr, var
  • Location of TSLIB(libts.so) and QT PLUGIN(libqtslibplugin.so)

    25
    0 Votes
    25 Posts
    10k Views
    T
    unfortunately I followed this conversation but there is no fruitful outcome that any one can follow:
  • No device found

    2
    0 Votes
    2 Posts
    2k Views
    M
    Let it be here, me too faced this long before at the trip start ;)
  • QWebPage on Android

    8
    0 Votes
    8 Posts
    3k Views
    deleted57D
    In your test you basically tried if the "web engine" is able to work if the view is out of the screen and I expect it to work since the thread is active. The problem is you don't have "updates" regarding he current status of the map screen image painted. This is what I miss and I need for my app... Anyway thank you for your time :)