Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.7k Posts
  • 0 Votes
    4 Posts
    2k Views
    SGaistS
    QtMultimedia's backends uses the platform API so AVFoundation on OS X, WMF/DirectX on windows etc. The GStreamer backend is used on non-android non-mac unix variants.
  • QML listview model binded to QMap

    qml listview qmap model embedded linux
    2
    0 Votes
    2 Posts
    2k Views
    p3c0P
    @Gfloridafan93 AFAIK you cannot bind QMap to ListView model. As model is something which communicates with the data and provides an interface to the components which use it whereas QMap is just a container which contains the actual data. May be you can write a model which can use QMap internally to store data temporarily.
  • Qt5 does not compatible with Xcode 6?

    Locked
    2
    0 Votes
    2 Posts
    414 Views
    SGaistS
    Hi, Please don't post the same question on multiple sub-forum, one is enough Duplicate Closing this one
  • QWS dual touch

    1
    0 Votes
    1 Posts
    496 Views
    No one has replied
  • [solved] Qt 5.4 - Proxy settings for QtWebEngine

    14
    0 Votes
    14 Posts
    13k Views
    P
    @pcushman Hi, have you solved your proxy problem now? Because I meet the same question as you. Thanks, Peng
  • QT_QPA_EGLFS_FB not picking up /dev/fb1

    4
    0 Votes
    4 Posts
    8k Views
    H
    I just looked at the qt5base source code a bit, and traced the error to here: if (!rx::IsValidEGLNativeWindowType(win)) { recordError(egl::Error(EGL_BAD_NATIVE_WINDOW)); return EGL_NO_SURFACE; } But then it gets bizarre, because the IsValidEGLNativeWindowType() method is only supplied in win32 or winrt--when in fact I am on Linux--as you can see here: ~/work/o755/buildroot/output/build/qt5base-5.4.0$ grep -nR --include="*.cpp" IsValidEGLNativeWindowType * src/3rdparty/angle/src/libEGL/libEGL.cpp:414: if (!rx::IsValidEGLNativeWindowType(win)) src/3rdparty/angle/src/common/win32/NativeWindow.cpp:14:bool IsValidEGLNativeWindowType(EGLNativeWindowType window) src/3rdparty/angle/src/common/winrt/InspectableNativeWindow.cpp:198:bool IsValidEGLNativeWindowType(EGLNativeWindowType window) On Googling, I see that some people talk about writing a platform specific GLES binder code. I am trying to run on Linux noveau driver (NVS420) WITHOUT X-Windows. Does anyone know if the work has already been done? If not, can someone please point me to a guide on how to write the necessary "glue" code? Thank you very much for reading. w/ regards, Henry
  • How to sub-class the Google-Cloud-Messaging API in Qt

    c++ google-cloud-me
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, AFAIK, that's a JAVA API so you would need to take a look at Qt's JNI helpers Hope it helps
  • NFC on QT using JNI

    android nfc jni
    7
    0 Votes
    7 Posts
    4k Views
    A
    Hi, sorry for the delay! Here they are the first lines from the debugger: Starting remote process.I/art ( 2684): Late-enabling -Xcheck:jni I/LoadedApk( 2684): No resource references to update in package common I/LoadedApk( 2684): No resource references to update in package com.cyngn.hexo W/ResourceType( 2684): For resource 0x01030224, entry index(548) is beyond type entryCount(9) W/ResourceType( 2684): For resource 0x01030224, entry index(548) is beyond type entryCount(9) I/Qt ( 2684): qt start D/ ( 2684): (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. W/Qt A11Y ( 2684): Could not activate platform accessibility. D/OpenGLRenderer( 2684): Render dirty regions requested: true D/Atlas ( 2684): Validating map... I/Adreno-EGL( 2684): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BF.1.1.1.C2.05.00.00.046.002_msm8974_LA.BF.1.1.1.C2__release_AU () I/Adreno-EGL( 2684): OpenGL ES Shader Compiler Version: E031.25.03.00 I/Adreno-EGL( 2684): Build Date: 01/06/15 Tue I/Adreno-EGL( 2684): Local Branch: mybranch6793908 I/Adreno-EGL( 2684): Remote Branch: quic/LA.BF.1.1.1.c2 I/Adreno-EGL( 2684): Local Patches: NONE I/Adreno-EGL( 2684): Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1.C2.05.00.00.046.002 + NOTHING I/OpenGLRenderer( 2684): Initialized EGL, version 1.4 D/OpenGLRenderer( 2684): Enabling debug mode 0 D/libNFCtest.so( 2684): ../NFCtest/nfcintent.cpp:20 (void NFCIntent::init()): false I/Timeline( 2684): Timeline: Activity_idle id: android.os.BinderProxy@31a9db3f time:25527170 F/art ( 2684): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception 'java.lang.RuntimeException' thrown in unknown throw location F/art ( 2684): art/runtime/check_jni.cc:65] in call to NewGlobalRef F/art ( 2684): art/runtime/check_jni.cc:65] "QtThread" prio=5 tid=15 Runnable F/art ( 2684): art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12d2f0e0 self=0xa172f400 F/art ( 2684): art/runtime/check_jni.cc:65] | sysTid=2704 nice=0 cgrp=apps sched=0/0 handle=0xa24ed480 F/art ( 2684): art/runtime/check_jni.cc:65] | state=R schedstat=( 46736358 42323642 107 ) utm=4 stm=0 core=0 HZ=100 F/art ( 2684): art/runtime/check_jni.cc:65] | stack=0xa1b55000-0xa1b57000 stackSize=1012KB F/art ( 2684): art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held) F/art ( 2684): art/runtime/check_jni.cc:65] native: #00 pc 00004640 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23) F/art ( 2684): art/runtime/check_jni.cc:65] native: #01 pc 00002e8d /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8) F/art ( 2684): art/runtime/check_jni.cc:65] native: #02 pc 0023ee95 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68) F/art ( 2684): art/runtime/check_jni.cc:65] native: #03 pc 0022432f /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146) F/art ( 2684): art/runtime/check_jni.cc:65] native: #04 pc 000af913 /system/lib/libart.so (art::JniAbort(char const*, char const*)+582) F/art ( 2684): art/runtime/check_jni.cc:65] native: #05 pc 000b004d /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60) F/art ( 2684): art/runtime/check_jni.cc:65] native: #06 pc 000b315d /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1284) F/art ( 2684): art/runtime/check_jni.cc:65] native: #07 pc 000b43c5 /system/lib/libart.so (art::CheckJNI::NewGlobalRef(_JNIEnv*, _jobject*)+20) F/art ( 2684): art/runtime/check_jni.cc:65] native: #08 pc 001b38ff /data/app/org.qtproject.nfc-2/lib/arm/libQt5Core.so (QJNIObjectPrivate::QJNIObjectPrivate(_jobject*)+82) F/art ( 2684): art/runtime/check_jni.cc:65] native: #09 pc 001b3ef5 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Core.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #10 pc 001b5fb1 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Core.so (QJNIObjectPrivate::getStaticObjectField(char const*, char const*, char const*)+48) F/art ( 2684): art/runtime/check_jni.cc:65] native: #11 pc 000194d1 /data/data/org.qtproject.nfc/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #12 pc 0001ce53 /data/data/org.qtproject.nfc/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #13 pc 000bfc55 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Quick.so (QSGRenderLoop::instance()+76) F/art ( 2684): art/runtime/check_jni.cc:65] native: #14 pc 000d6343 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Quick.so (QQuickWindowPrivate::init(QQuickWindow*, QQuickRenderControl*)+162) F/art ( 2684): art/runtime/check_jni.cc:65] native: #15 pc 000d6523 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Quick.so (QQuickWindow::QQuickWindow(QQuickWindowPrivate&, QWindow*)+30) F/art ( 2684): art/runtime/check_jni.cc:65] native: #16 pc 00136023 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Quick.so (QQuickWindowQmlImpl::QQuickWindowQmlImpl(QWindow*)+66) F/art ( 2684): art/runtime/check_jni.cc:65] native: #17 pc 00136115 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Quick.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #18 pc 00123c39 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlType::create() const+34) F/art ( 2684): art/runtime/check_jni.cc:65] native: #19 pc 0014b407 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #20 pc 0014bbfb /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #21 pc 0011b657 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlComponentPrivate::beginCreate(QQmlContextData*)+342) F/art ( 2684): art/runtime/check_jni.cc:65] native: #22 pc 0011a29d /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlComponent::create(QQmlContext*)+56) F/art ( 2684): art/runtime/check_jni.cc:65] native: #23 pc 001458eb /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlApplicationEnginePrivate::_q_finishLoad(QObject*)+194) F/art ( 2684): art/runtime/check_jni.cc:65] native: #24 pc 00145e97 /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool)+74) F/art ( 2684): art/runtime/check_jni.cc:65] native: #25 pc 00145eed /data/app/org.qtproject.nfc-2/lib/arm/libQt5Qml.so (QQmlApplicationEngine::load(QUrl const&)+20) F/art ( 2684): art/runtime/check_jni.cc:65] native: #26 pc 00001a50 /data/app/org.qtproject.nfc-2/lib/arm/libNFCtest.so (main+156) F/art ( 2684): art/runtime/check_jni.cc:65] native: #27 pc 00019a79 /data/data/org.qtproject.nfc/qt-reserved-files/plugins/platforms/android/libqtforandroid.so (???) F/art ( 2684): art/runtime/check_jni.cc:65] native: #28 pc 00013a1b /system/lib/libc.so (__pthread_start(void*)+30) F/art ( 2684): art/runtime/check_jni.cc:65] native: #29 pc 00011a0f /system/lib/libc.so (__start_thread+6) F/art ( 2684): art/runtime/check_jni.cc:65] (no managed stack frames) F/art ( 2684): art/runtime/check_jni.cc:65] F/art ( 2684): art/runtime/runtime.cc:284] Runtime aborting... I'm not sure why Qt if complaining with this: JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception 'java.lang.RuntimeException' thrown in unknown throw location. Maybe I'm not creating the JNI object as it should. Here is my code: main.cpp int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; NFCIntent mynfc; mynfc.init(); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); } init function void NFCIntent::init() { QAndroidJniObject* nfc = new QAndroidJniObject("org/atron/nfc/MainActivity"); qDebug() << nfc->isValid(); }
  • NotificationClient

    android qt 5.4.1
    6
    0 Votes
    6 Posts
    2k Views
    A
    @MrAhmedSayedAli , you would have to set the contentintent on your created notification object in the Java code and then handle the notification according to your needs. As an alternative you might also want to have a look at our plugin which already implements the logic without further effort: http://plugins.v-play.net/plugins/notifications/ Cheers, Alex
  • Crossplatform app development tools

    1
    0 Votes
    1 Posts
    804 Views
    No one has replied
  • [Solved]Problem with overlapping of ListView items with other things

    3
    0 Votes
    3 Posts
    2k Views
    F
    @p3c0 said: For the first try setting clip property. Secondly you can disable scroll by setting interactive to false. Thanks! That solved it!
  • 0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, Boot2Qt is a commercial offering, you should contact the Qt Company/Digia directly through e.g. the Support Center accessible on your Qt account.
  • 0 Votes
    5 Posts
    2k Views
    T
    @mcosta It turns out that I can use the minimal platform to render an alpha window. I found out through the mailing list. The code snippet has no relation whatsoever to what setWindowOpacity is doing. If you are only after having transparent (alpha == 0) areas on the window, then there is no difference with 'minimal' compared to any other platform. In fact it's much easier since you won't need to worry about having transparency functional on the windowing system level. Just writing out pixels with an alpha of 0 is good enough, f.ex.: tlw.setAutoFillBackground(true); tlw.setBrush(QPalette::Window, Qt::transparent); See http://doc.qt.io/qt-5.4/qwidget.html#transparency-and-double-buffering Cheers, Laszlo So, I can achieve what I need with the minimal platform, making a few minor tweaks to output the image to the framebuffer in a unique way. Qalette pallete = widget.palette(); pallete.setBrush(QPalette::Window, Qt::transparent); widget.setPalette(pallete); widget.show();
  • QtActivity, crash at statrup

    2
    0 Votes
    2 Posts
    619 Views
    mrdebugM
    by changing the line to extends org.qtproject.qt5.android.bindings.QtApplication now the application starts but when I try to get the NOTIFICATION_SERVICE I obtain a non valid pointer exception.
  • QT5.4.0 the"cube" sample has error on android

    android tegra
    1
    0 Votes
    1 Posts
    666 Views
    No one has replied
  • [iOS] QIOSApplicationDelegate

    3
    0 Votes
    3 Posts
    2k Views
    benlauB
    @MaxL What are you going to extend? In case if you just need to override the openURL and didFinishLaunchingWithOptions function. Then you don't need to include the header of QIOApplicationDelegate. In my application , I have override the openURL to use Dropbox without the header and it works. Example code: https://github.com/benlau/quickios/blob/master/tests/quickiosexample/appdelegate.mm
  • What replaces QtSystemInfo 5.0 ?

    1
    0 Votes
    1 Posts
    560 Views
    No one has replied
  • How to determine which files must be on embedded target

    2
    0 Votes
    2 Posts
    570 Views
    SGaistS
    Hi and welcome to devnet, No there's no make install option for that. However based on your application, you can already make a first round of selection based on the modules you are using. If in doubt, you can use ldd (assuming your are running linux) to see what you are currently linking to. As for the plugins, it will also depend on the modules you are using. The platform plugin is mandatory. What are you currently using ?
  • Add virtual keypad in Qt4.8

    7
    0 Votes
    7 Posts
    2k Views
    SGaistS
    Isn't that the job of the setPosition function like shown in the examples ?
  • 0 Votes
    2 Posts
    1k Views
    T
    The solution that worked for me is to keep the OpenGL window open all the time, and pass a flag from the QML code to indicate whether it should draw or not.