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
  • Can't send events to a Modal QDialog!

    2
    0 Votes
    2 Posts
    611 Views
    E
    I've implemented an "exec()" like function, that doesn't leaves the main event-loop, but still it does! @int QSelectionDialog::getSelection(void){ setModal(false); show(); isDone=false; while ( !isDone ){ qApp->processEvents(); } int ret_val; ret_val = eleccion->text().toInt(); if ( ret_val > last->count() ) ret_val = 0; hide(); return ret_val; }@ What am I doing wrong?
  • Missing flags when cross-compiling my QT app

    10
    0 Votes
    10 Posts
    3k Views
    M
    mmm ....I've just noticed that the -sysroot flag is not set, can it be this? There only one way to know it :-p!
  • Catch(...) on Android cause application to crash

    1
    0 Votes
    1 Posts
    725 Views
    No one has replied
  • [SOLVED] Exception handling on Android

    2
    0 Votes
    2 Posts
    1k Views
    K
    Sorry, it was output from some different display. Actually there is: @ qDebug("Test try"); try { throw std::exception(); qDebug("\tpassed"); } catch (std::exception e) { qDebug() << "Catch" << e.what(); } qDebug("Test 2 try"); try { throw std::exception(); } catch (std::exception e) { qDebug() << "Catch" << e.what(); } qDebug("Test 2 try: ok"); qDebug("Test int try"); try { throw 1; qDebug("\tpassed"); } catch (int e) { qDebug() << "Catch" << e; } qDebug("Test int try: ok"); qDebug("Test char try"); try { throw "error"; qDebug("\tpassed"); } catch (const char * e) { qDebug() << "Catch" << e; } qDebug("Test char try: ok"); qDebug("Test all try"); try { throw; qDebug("\tpassed"); } catch (...) { qDebug() << "Catch all"; } qDebug("Test all try: ok"); qDebug("Test zero try"); try { int i(1/0); qDebug() << "\tpassed" << i; } catch (...) { qDebug() << "Catch zero"; } qDebug("Test zero try: ok");@ And output: @D/BtMini ( 9108): Test try D/BtMini ( 9108): Catch std::exception D/BtMini ( 9108): Test 2 try D/BtMini ( 9108): Catch std::exception D/BtMini ( 9108): Test 2 try: ok D/BtMini ( 9108): Test int try D/BtMini ( 9108): Catch 1 D/BtMini ( 9108): Test int try: ok D/BtMini ( 9108): Test char try D/BtMini ( 9108): Catch error D/BtMini ( 9108): Test char try: ok D/BtMini ( 9108): Test all try F/libc ( 9108): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 9124 (t.bibletimemini)@ It is strange...
  • Qt is not compiling for Windows Phone 8

    3
    0 Votes
    3 Posts
    1k Views
    H
    Thanks for te answer Jsee. I'll try with WP8.1 SDK.
  • QT 5.4 Android device information

    2
    0 Votes
    2 Posts
    963 Views
    A
    Hi, In QML you currently only get the platform you're running on. For further details you can use the JNI interface to get the information out of Android's native classes and set them as Qt Quick context properties to use them in code (in V-Play we have some properties like the "screen diagonal":http://v-play.net/doc/vplay-gamewindowapplicationwindow/#diameterInInches-prop which can be used to differentiate between smartphones and tablets for example). Best, Alex
  • Get device /Android or iPad/ default font scale

    1
    0 Votes
    1 Posts
    568 Views
    No one has replied
  • MediaPlayer & VideoOutput combo on Android - any working example?

    2
    0 Votes
    2 Posts
    2k Views
    GianlucaG
    I don't know about remote file. But I was able to show a local MP4 video on Android without any problem using VideoOutput, and from what I know you should set a full local URL path and you cannot embed video into Qt resources (qrc://) So, instead of an URL like: qrc:/Vserv/qml/stock-footage-sailing-in-the-wind-through-the-waves-hd-sailing-boat-shot-in-full-hd-at-the-sailing-in-the.mp4 you should pass an URL like: file://mnt/sdcard/Videos/stock-footage-sailing-in-the-wind-through-the-waves-hd-sailing-boat-shot-in-full-hd-at-the-sailing-in-the.mp4
  • Qt with buildroot tslib problem

    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    That's an environment variable, you set it in the console you use to start your application or if you do it from Qt Creator, set it in the run part of the Project Panel
  • [solved] how to add .so library to android apk

    3
    0 Votes
    3 Posts
    3k Views
    A
    [solution] [quote author="antreimer" date="1424556611"]I now statically linked the plugin so nothing should be needed to do other then to copy it into the sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0[/quote] As prescribed by antreimer I downloaded the file from quoted link and copied libqsqlpsql.so to path/to/Qt/android_armv7/plugins/sqldrivers. Nothing else is required. The library is automatically added and no modification to the .pro file is required
  • Qt Android client for Postresql

    35
    0 Votes
    35 Posts
    11k Views
    A
    [quote author="antreimer" date="1424556611"]I now statically linked the plugin so nothing should be needed to do other then to copy it into th sqldrivers plugin folder https://drive.google.com/open?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU&authuser=0[/quote] brilliant! Works like a charm! thank you so very much for your help. I just copied the file to /path/to/Qt/android_armv7/plugins/sqldrivers and remove the android extra libs script from .pro file and its now working :)
  • 0 Votes
    5 Posts
    1k Views
    ngendlioN
    thank you but ... My application is oriented QtQuick.. ot means there is some Classes in C++ (not user interface) and i use them in qml by register them using qmlRegisterType So i don't see any other module i can remove here: Check These files: file.pro looks like that @TEMPLATE = app QT += quick network sql multimedia SOURCES += main.cpp httpdownloader.cpp rpa.cpp database.cpp liodate.cpp medianews.cpp RESOURCES += qml.qrc qml.qrc Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = Default rules for deployment. include(deployment.pri) HEADERS += httpdownloader.h rpa.h database.h liodate.h medianews.h ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android OTHER_FILES += DISTFILES += Notes.txt @ and my main.cpp @ #include <QGuiApplication> #include <QtQml> #include <QQmlApplicationEngine> #include<database.h> #include <medianews.h> #include <liodate.h> #include <rpa.h> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); //registering Classes to Qml // qmlRegisterType<HttpDownloader> ("HttpDownloader", 1,0, "Downloader"); qmlRegisterType<Database> ("Database", 1,0, "Database"); qmlRegisterType<News> ("News", 1,0, "News"); qmlRegisterType<Rpa> ("Rpa", 1,0, "Rpa"); qmlRegisterType<LioDate> ("LioDate", 1,0, "LioDate"); // QML ENGINE QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); } @ Before in the main .cpp it was QApplication instead of QGuiApplication but i changed QApplication to QGuiApplication in other to remove widgets module in the file.pro Also in the main.cpp , i can't remove #include <QtQml> because it is used for qmlRegisterType. Please. Thank you
  • QProcess cannot write data to stdin

    11
    0 Votes
    11 Posts
    6k Views
    SGaistS
    What i'd try (I haven't thus far) is to have a QThread dedicated to read stdin and emit a signal that would write to QProcess's input so you can have the event loop running.
  • Qt5 + Android + PostgreSQL

    4
    0 Votes
    4 Posts
    1k Views
    A
    http://qt-project.org/wiki/Build_Qt5_postgresql_plugin_for_Android Here are the resulting libraries https://drive.google.com/folderview?id=0ByPpOAN5EsHKfmgwRTFvQUl5Z1NvUnlYMHptTEs0d2xEc24xZ19Jb0ZDMTBpb3JDQ014ZkU
  • Problem sending text strings to process with QProcess::write

    3
    0 Votes
    3 Posts
    2k Views
    E
    It's the same problem, but I stripped down the voice class so that I could post it in its entirety, giving the full context. I did it on a new thread because the original seemed to have died.The old version actually had problems due to multi-threading. This version does not use multi-threading at all. Consequently the QProcess::write calls appear to work (they return the correct number of bytes sent). However the console program fails to speak, whereas it does work when run from a command prompt and sent text throught the keyboard. My conclusion is that the message is not being received in stdin. Buffering problem or do I need to force flush ?
  • Building Qt for Beaglebone Black

    1
    0 Votes
    1 Posts
    643 Views
    No one has replied
  • Connect to QBluetoothSocket::error signal using new style connect

    2
    0 Votes
    2 Posts
    747 Views
    SGaistS
    Hi and welcome to devnet, QBluetoothSocket has more than one function called error. You need to tell which overload you are using. You have an example "here":http://qt-project.org/wiki/New_Signal_Slot_Syntax
  • CMake Generator for IOS/Android projects?

    19
    0 Votes
    19 Posts
    19k Views
    SGaistS
    I'd say it's worth asking on the "android-development mailing list":http://lists.qt-project.org/mailman/listinfo/android-development :)
  • Building Qt 5.1.0-rc1 for TI DVSDK DM365 4.02.00.06

    5
    0 Votes
    5 Posts
    4k Views
    W
    I had the same problem when cross compiling for my Xilinx Zynq Board. My problem was that my toolchain had a softlink from g++ to armv7l-unknown-linux-gnueabihf-g++. To fix the problem I had to was to add the crosscompile/bin folder to the end of $PATH instead of at the beginning. Use the following command to test which g++ is called. @which g++@
  • WebEngine & raspberry pi

    3
    1 Votes
    3 Posts
    5k Views
    L
    Thanks for that detailed reply mijutu2, very much appreciated :) By the way did you also managed to build webengine on RPI ? I'm wondering if the chacha patches would be required as we have the neon support now for ssl .. :)