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
  • Finding config files in Android runtime deployments (Qt6.9.1)

    Unsolved
    9
    0 Votes
    9 Posts
    107 Views
    SMF-QtS
    @Axel-Spoerl said in Finding config files in Android runtime deployments (Qt6.9.1): QDirIterator it(":", QDirIterator::Subdirectories); while (it.hasNext()) qInfo() << it.next(); Thanks for that but I see files I have in my images directory and stuff from the qt project but nothing from :/assets, but as I said the file is there if I unpack the Apk file. Do I need to add something to the AndroidManifest.xml or my qrc file ?
  • Qt for UEFI platforms?

    8
    1 Votes
    8 Posts
    3k Views
    RokeJulianLockhartR
    @neuehier, although not 1:1, wxWidgets is usable for EFI GUIs (I've a LINX 1010 with one), and it can delegate to wxQt when required. I can't imagine a situation in which you'd run the preboot application outside of a preboot environment, though, so, in practice, it wouldn't delegate to it frequently. If you needed the application to be versatile enough to be able to operate in both environments, though, it'd work.
  • QOpenGLWidget not working on iOS 18 (e.g. hellogl2 example)

    Unsolved ios opengl es
    3
    0 Votes
    3 Posts
    56 Views
    SGaistS
    Hi and welcome to devnet, I think you should directly check the bug report system.
  • QT for Qnx Project Configuration / Kit Error

    Unsolved
    7
    0 Votes
    7 Posts
    115 Views
    jsulmJ
    @zvoopz said in QT for Qnx Project Configuration / Kit Error: Look at the sreenshots he has provided - qmake This is how you add a Qt version in QtCreator - by pointing to qmake
  • How to disable screensaver on Qt6.9.1 Android App

    Unsolved
    16
    0 Votes
    16 Posts
    398 Views
    SMF-QtS
    I have tried various ways to get "getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)" running however the only solution that works for me is to put it in the "onCreate" method in the QtActivity java class (Qt6.9.1) . It really needs to be conditional but I don't know enough about java to do that. Any suggestions welcome.
  • Qt6 Gettting Android Battery Data.

    Solved
    5
    0 Votes
    5 Posts
    120 Views
    SMF-QtS
    @SMF-Qt Found the solution: changed the static method call in my C++ file to: batteryLevel = QJniObject::callStaticMethod<jdouble>("QtBattery","getBatteryPercentage",QNativeInterface::QAndroidApplication::context()); And it now works.
  • Running A Profiled App on X86_64 Android Emulator Qt6.9.1

    Unsolved
    15
    0 Votes
    15 Posts
    422 Views
    SMF-QtS
    @SMF-Qt I have noticed that after I click the Quit button and my application has exited main I sometimes get the following abort message from the QtCreator debugger: W/qtMainLoopThrea: type=1400 audit(0.0:64483): avc: denied { read } for name="/" dev="tmpfs" ino=1 scontext=u:r:untrusted_app:s0:c209,c256,c512,c768 tcontext=u:object_r:device:s0 tclass=dir permissive=0 app=com.home.QtTest4 W/qtMainLoopThrea: type=1400 audit(0.0:64484): avc: denied { read } for name="devices" dev="sysfs" ino=4521 scontext=u:r:untrusted_app:s0:c209,c256,c512,c768 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 app=com.home.QtTest4 D/EGL_emulation: app_time_stats: avg=171.19ms min=6.22ms max=947.76ms count=6 I/ImeTracker: com.home.QtTest4:89e0e728: onRequestHide at ORIGIN_CLIENT reason HIDE_SOFT_INPUT fromUser false I/ImeTracker: com.home.QtTest4:c4e121a7: onRequestHide at ORIGIN_CLIENT reason HIDE_SOFT_INPUT fromUser false D/EGL_emulation: app_time_stats: avg=2462.04ms min=33.03ms max=10232.86ms count=5 I/default : main() returned 0 D/VRI[QtActivity]: visibilityChanged oldVisibility=true newVisibility=false W/default : java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Context.unregisterReceiver(android.content.BroadcastReceiver)' on a null object reference W/default : at org.qtproject.qt.android.network.QtNetwork.unregisterReceiver(QtNetwork.java:49) W/default : at org.qtproject.qt.android.QtNative.startQtApplication(Native Method) W/default : at org.qtproject.qt.android.QtNative$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0) W/default : at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25) W/default : at java.lang.Thread.run(Thread.java:1012) W/default : F/libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x749993a02ab8) F/libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x749993a02ab8) F/libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20289 (hwuiTask0), pid 20225 (.home.QtTest4) 09:24:14: Android target "com.home.QtTest4" died.
  • meta-qt6 has tag v6.8.4-lts but not v6.8.4

    Unsolved
    5
    0 Votes
    5 Posts
    87 Views
    SGaistS
    Hi, If memory serves well, it was usually around every three releases. 5.6 -> 5.9 -> 5.12 -> 5.15. 6.5 -> 6.8
  • Is it possible to make a Qt Android app with a UI into a foreground service?

    Solved
    8
    0 Votes
    8 Posts
    341 Views
    J
    I have done some more research. Using Android services with Qt is problematic. There is however a simple flag in the manifest file that allows a QT app to keep it's main thread-loop running when the app is in the background, so that it can be used for audio playback, or receiving push notifications that can trigger actions in the main Qt thread, when the user is not actively using it. <meta-data android:name="android.app.background_running" android:value="true"/> This setting, in the application entity gave me the most important functionality I was looking for.
  • Multiple screens on Qt Automotive with iMX6

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    Bjorn92B
    Hi @Isaias , I have achieved to run two displays (LVDS + HDMI) using Wayland Weston, and running an instance of Weston in clone-mode: /usr/bin/weston --modules=systemd-notify.so --tty=1 --device=/dev/fb0,/dev/fb2 --clone-mode Here, the content of fb0 is cloned to fb2. It works, but on my SoM (i.MX6 based), I now experience severe lag on the LVDS screen and the touch inputs are also delayed. Additionally, I had to tune down the HDMI resolution to 900x600 to get it to work. On my SoM, using DRM/KMS is not an option, since my kernel version does not support it. I use fbdev instead. Maybe this helps a bit. If anybody has another solution, please share!
  • 0 Votes
    11 Posts
    270 Views
    ekkescornerE
    @BTSTOnline cool :)
  • 0 Votes
    1 Posts
    44 Views
    No one has replied
  • Android Full Screen issue

    Solved
    6
    0 Votes
    6 Posts
    189 Views
    B
    @ekkescorner , your post in another thread helped: https://forum.qt.io/post/829606
  • Android API - 35 issues in Qt 5.15.2

    Unsolved
    11
    0 Votes
    11 Posts
    430 Views
    ekkescornerE
    And here's what Qt says, if you want to opt-out from Android-35 edge-to-edge: you have to add styles.xml and add in Manifest... activity... android:theme="@style/NormalTheme" see the details here: https://codereview.qt-project.org/c/qt/qtbase/+/630376
  • QT_HOST_PATH is required to *use* Qt (6.9.1) on RPi

    Solved
    5
    0 Votes
    5 Posts
    78 Views
    S
    Yep, I was able to install everything I need from Qt6 on RPi Ubuntu. Setting... set(CMAKE_PREFIX_PATH "usr/lib/aarch64-linux-gnu/cmake/") ...allowed CMake to find everything. Like one of my highschool maths teachers used to say, "Don't do it how I've shown you on the board."
  • Boot to Qt for Raspberry pi Compute Module 5? (Plus IO board)

    Unsolved
    2
    0 Votes
    2 Posts
    70 Views
    SGaistS
    Hi and welcome to devnet, The CM5 seems to be based on the same hardware as the RPi5 so it's likely compatible with Boot2Qt. You might have better answer contacting the Qt Company directly since it's a commercial offering and this forum is user oriented.
  • 0 Votes
    2 Posts
    58 Views
    C
    it is Webview issue. will update soon when find the fix.
  • 0 Votes
    5 Posts
    168 Views
    JoeCFDJ
    @Pruza For android build VS C++ compiler is not needed anymore. You can simply do it with QtCreator.
  • MediaPlayer VideoOutput SIGSEGV gst_v4l2_object_fill_format_list

    Unsolved
    12
    0 Votes
    12 Posts
    344 Views
    JoeCFDJ
    @petero3 does your code work on Ubuntu or Redhat? Is wayland applied in Yocto? If yes, the following envs are needed. #ifdef YOCTO setenv( "DISPLAY", ":0", 1 ); setenv( "GDK_BACKEND", "wayland", 1 ); setenv( "QT_QPA_PLATFORM", "wayland", 1 ); setenv( "XDG_RUNTIME_DIR", "/run/user/1000", 1 ); setenv( "WAYLAND_DISPLAY", "wayland-1", 1 ); setenv( "QT_QPA_FONTDIR", "/usr/share/fonts/truetype", 1 ); #endif
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    50 Views
    No one has replied