Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.3k Posts
  • How to automatically launch iOS app with parameters

    Locked Solved
    9
    0 Votes
    9 Posts
    2k Views
    M
    Note that for Android 12 and later, you need some extra steps for URLs like https://example.org/register to be picked up by your app and not a web browser. See https://developer.android.com/training/app-links. You now need to host an assetlinks JSON file under /.well-known/assetlinks.json and point your AndroidManifest.xml at this. See https://developer.android.com/training/app-links/verify-android-applinks. You can host the assetlinks on GitHub pages if you don't have your own server. In our case, iOS doesn't care about the change of domain because we only look at the query parameters in the URL.
  • QML TextEdit, validator, regex with \pL — how to do it?

    Unsolved
    6
    0 Votes
    6 Posts
    627 Views
    B
    @zvoopz Right, that's what I do in my non-QML widget code. For my QML code, exposing a C++ object class may be the best solution, if only because QRegularExpressionValidator can do an intelligent "fixup" that would let me accept a paste while filtering out any invalid characters, but it's odd to me that [a] TextEdit still doesn't have a validator property, and [b] QML is still stuck on ECMA 7th edition, which is now nine years old.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Qt Android activity creation problem on Java update

    Unsolved java activity androidqt qt5.12.x gradle
    2
    0 Votes
    2 Posts
    729 Views
    M
    Newer versions of Android are able to read native libs directly from the apk without extracting them if they are stored uncompressed in the apk. This is done to save disk space on the device, and the new default during apk creation, but Qt 5.12 does not handle this. To compress native libs again add android:extractNativeLibs="true" in AndroidManifest.xml to the application tag.
  • Button over QVideoWidget

    Solved
    24
    0 Votes
    24 Posts
    5k Views
    QtFriend2024Q
    One Solution Without QML I've figured a way to get the QVideoWidget to stack behind QPushButton and QLabel in a Widgets application without using QML - the camera has to be started before the stacking order is set. Otherwise, the QVideoWidget gets forced to the front no matter what you do. This worked for me.
  • QML Android Layout Artifacts on Orientation Change - Intermittent Issues

    Unsolved
    1
    0 Votes
    1 Posts
    131 Views
    No one has replied
  • qt.bluetooth.windows: Could not await descriptor read result

    Unsolved
    1
    0 Votes
    1 Posts
    129 Views
    No one has replied
  • Qt6.8 for Android,Unable to create the template

    Unsolved
    10
    0 Votes
    10 Posts
    977 Views
    L
    When creating a project, selecting "Qt Quick Application (compat)" to generate a .pro-based project allows normal template creation under the "Build Android APK" option. However, choosing "Qt Quick Application" with CMake (generating CMakeLists.txt) causes the issue. This suggests the problem relates to legacy .pro (qmake) vs modern CMake build systems in Qt Android packaging.
  • Yocto and patches. How are they applied? Can I patch a patch?

    Unsolved
    1
    0 Votes
    1 Posts
    183 Views
    No one has replied
  • 1 Votes
    2 Posts
    266 Views
    A
    Found out this is a known bug: https://bugreports.qt.io/browse/QTBUG-136493
  • iOS -ObjC link option leads to "duplicate symbol" for QtCore.framework

    Solved
    2
    0 Votes
    2 Posts
    269 Views
    M
    I actually found a solution to my problem :DDD In fact this was a bug in Qt since 6.7.3: https://bugreports.qt.io/browse/QTBUG-135978?gerritReviewStatus=Open which now seems to be fixed https://codereview.qt-project.org/c/qt/qtbase/+/643588 A workaround for now suggest here https://bugreports.qt.io/browse/QTBUG-132412 is to Configure with cmake 3.29+ and the extra -DQT_FORCE_CMP0156_TO_NEW=ON option. which I did by setting the policy in my root project cmake file right before find_package: # Enable CMP0156 explicitly to prevent duplicate symbol errors when using -ObjC linker flag if (POLICY CMP0156) message(STATUS "Setting CMP0156 policy to NEW...") set(QT_FORCE_CMP0156_TO_NEW ON CACHE BOOL "Force CMake policy CMP0156 to NEW behavior for Qt6") elseif () message(ERROR "CMP0156 policy not available! Please switch to cmake 3.29+ and Qt6.9") endif ()
  • Android app icon does not fit the icon frame on Android device

    Unsolved
    3
    0 Votes
    3 Posts
    301 Views
    J.HilkJ
    Usually this happens when the Icon itself has white space. Usually people try to accommodate round corners to match the other Icons on the phone. But the round corners come from the OS itself, so the Icon has to be "fullscreen"
  • Android debugging stopping in disassembly in Qt Creator [your +1 is needed]

    Unsolved
    1
    3 Votes
    1 Posts
    159 Views
    No one has replied
  • Android App via debugger cashes updateNativeActivity() not found

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    M
    Can you try to use 6.8 instead of 6.9.0 ?
  • Andrioid Emulator no Widget GUI updates

    Unsolved
    4
    0 Votes
    4 Posts
    358 Views
    Andy314A
    I found a global solution for it (resp. ChatGPT :-) and will share it here. class AndroidApplication : public QApplication { public: AndroidApplication(int &argc, char **argv) : QApplication(argc, argv) {} bool notify(QObject *receiver, QEvent *e) override { // Erstmal normal weiterleiten bool ok = QApplication::notify(receiver, e); // Bei jedem UpdateRequest-Event erzwingen wir einen Frame-Swap if (e->type() == QEvent::UpdateRequest) { // Prüfen, ob das Ziel ein QWidget ist if (auto w = qobject_cast<QWidget*>(receiver)) { if (auto wh = w->window()->windowHandle()) { wh->requestUpdate(); // sofortigen Flush anstoßen } } } return ok; } }; It works ! Is this ok in general and for performance issues ?
  • Andriod Runtime-Error: E/OpenGLRenderer: Unable to match the desired swap behavior.

    Solved
    2
    0 Votes
    2 Posts
    427 Views
    Andy314A
    I found a solution for me hw.gpu.enabled = yes hw.gpu.mode = angle ... what ever it means
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Get rounded corners on android

    Unsolved
    13
    0 Votes
    13 Posts
    740 Views
    F
    Are you sure? This seems pretty nonprofessional. I have no better explanation, though. I would assume, that this affects every fullscreen app... I write a media player, for example. They recently implemented this: https://www.qt.io/blog/expanded-client-areas-and-safe-areas-in-qt-6.9 Which seems to me quite similar. Yes, as a workaround, i use the height of the hidden status bar... Producing wasted space on old phones without rounded corners.
  • Tumbler on android not working

    Unsolved
    2
    0 Votes
    2 Posts
    222 Views
    F
    It's already reported as a bug. https://bugreports.qt.io/browse/QTBUG-133228 And i found a workaround: TapHandler, HoverHandler and MouseArea are not affected.
  • Andriod not availabe for Qt 5.15.2

    Solved
    8
    0 Votes
    8 Posts
    491 Views
    Andy314A
    Thank you for the help. I was a little bit stupid and forgot the feature.