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
  • Qt5.15.2 for Android: How to make tcp connection keepalived

    Unsolved
    2
    0 Votes
    2 Posts
    218 Views
    jsulmJ
    @iamnotsad said in Qt5.15.2 for Android: How to make tcp connection keepalived: Is there any solutions for this issue? https://developer.android.com/training/run-background-service/create-service
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    16 Posts
    1k Views
    V
    @J-Hilk It all looks fine to me as well, this is why it's even more difficult to find the issue. Oh well, guess I have to spend more time on this than I had planned to. Thanks for all your help tho, I highly appreciate it! :)
  • Application hangs after using up/down arrows in scrollbar of scrollarea widget

    Unsolved
    14
    0 Votes
    14 Posts
    875 Views
    V
    Thank you for the support. I will use this tool for further analysis.
  • Using 485 for QmodbusServer library

    Unsolved qmodbusdevice modbus rs485
    7
    0 Votes
    7 Posts
    1k Views
    A
    Hi @Chai18 Did you find any solution ? I have a similar issue but in the client side (QModbusClient) , this is my function to write data to the holding registers , but I'm all the time getting the response timeout, and master is actually handling incoming requests and send appropriate responses automatically. void Serial::writeData(int start, const QList<quint16> &holdingRegisters) { if (!modbusDevice) return; startAddress = start; numberOfEntries = holdingRegisters.size(); // Switch to Transmit Mode switchGPIO->setValue(true); // enables TX QModbusDataUnit writeUnit = writeRequest(); QModbusDataUnit::RegisterType table = writeUnit.registerType(); for (qsizetype i = 0, total = writeUnit.valueCount(); i < total; ++i) { const auto addr = i + writeUnit.startAddress(); if (table == QModbusDataUnit::Coils) writeUnit.setValue(i, m_coils[addr]); else writeUnit.setValue(i, holdingRegisters[addr]); } if (auto *reply = modbusDevice->sendWriteRequest(writeUnit, serverAddress)) { if (!reply->isFinished()) { QModbusDevice::connect( reply, &QModbusReply::finished, this, [this, reply]() { // Switch back to Receive Mode usleep(1000); // Small delay before switching switchGPIO->setValue(false); // Enable RX mode const auto error = reply->error(); if (error == QModbusDevice::ProtocolError) { qDebug() << "Write response error:" << reply->errorString() << "(Modbus exception:" << reply->rawResult().exceptionCode() << ")"; } else if (error != QModbusDevice::NoError) { qDebug() << "Write response error:" << reply->errorString() << "(code: 0x" << QString::number(error, 16) << ")"; } reply->deleteLater(); }); } else { qDebug() << "Write error: " << reply->errorString(); reply->deleteLater(); } } else { qDebug() << "Write error: " << modbusDevice->errorString(); switchGPIO->setValue(false); // Ensure RX mode is enabled on failure } } Thanks in advance
  • QScroller Grab Gesture causes Rendering issues on Android

    Unsolved android 6.8 tearing qscrollbar c++
    3
    0 Votes
    3 Posts
    384 Views
    E
    https://bugreports.qt.io/browse/QTBUG-135011 for anyone else encountering this, I have opened a bug with the upstream https://bugreports.qt.io/browse/QTBUG-135011
  • QtQuick stuck at 24FPS (wearable example)

    Unsolved
    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • AndroidExtras, import error

    Unsolved
    4
    1 Votes
    4 Posts
    519 Views
    V
    @J-Hilk Sorry, I would say I have a similar* issue. I posted the issue I have yesterday and got no response yet. This looked similar to what I am facing. I cannot import anything from androidx. Here is the link to my post: androidx package does not exist error . I would appreciate some help. Thanks in advance :)
  • Qt6 Android - SQLite Driver Not Found

    Unsolved
    2
    0 Votes
    2 Posts
    269 Views
    SGaistS
    Hi and welcome to devnet, From the looks of it, you try to load an x86 plugin with an arm64 version of Qt. That's not possible.
  • Qt Qml Android studio plugin is crashing

    Unsolved
    3
    0 Votes
    3 Posts
    323 Views
    S
    @Scott-Izi the StackOverflow is here
  • QCombobox stop working after back navigation on android in Qt 6.4.2 C++

    Unsolved
    4
    0 Votes
    4 Posts
    583 Views
    KaguroK
    @samuel898 Hi! Finally the Qt Team started working on my ticket! So you can follow the process on this ticket if you want: https://bugreports.qt.io/browse/QTBUG-127495
  • building android apk arm64-v8a error

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • Issue with Gradle when building Qt app for Android

    Unsolved andriod gradle qtcreator
    1
    1 Votes
    1 Posts
    240 Views
    No one has replied
  • gstreamer gst_parse_element_make: no element "video"

    Unsolved
    4
    0 Votes
    4 Posts
    493 Views
    JoeCFDJ
    @petero3 I guess you are using Qt5 and this feature of running pipelines within multimedia module is not supported any more in Qt6. Therefore, it may be a good idea to use raw gstreamer code directly and you have much better controls over your pipelines.
  • Using Java in my Qt/Android project

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    G
    I found a working way to solve the problem. https://scythe-studio.com/en/blog/how-to-interface-qt-with-android-java-code-2023 And also check. https://doc.qt.io/qt-6/qtcore-platform-androidnotifier-example.html
  • AbstractButton without icon may crash on Android

    Unsolved
    4
    0 Votes
    4 Posts
    342 Views
    SGaistS
    Thanks ! You might want to provide a minimal compilable example that reproduces this to the report.
  • Selecting a file on Android via content provider

    Solved
    2
    0 Votes
    2 Posts
    218 Views
    S
    Nevermind, turns out QFile can read the content:// URI directly.
  • Qt6 and EGLFS on Yocto

    Solved
    5
    0 Votes
    5 Posts
    5k Views
    S
    I had the same problem. It is critical for which device you are building QT6. In my case the EGL provider is libmali (Rockchip libMali.so). For other microcontrollers you must find some other solution. For Rockchip apply this patch: [https://github.com/agl-ic-eg/meta-rockchip-extra/tree/scarthgap-agl/dynamic-layers/meta-qt6/recipes-qt/qt6/qtbase] Patch content: From b745ade08dd3e3a9a14a32c1994c0bd7bfb8115f Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Date: Wed, 25 Sep 2024 22:45:07 +0900 Subject: [PATCH] HACK qtbase build using libmali Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> --- cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake | 2 +- cmake/FindGLESv2.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake index 9ac8e2fa0c..c5561f7fdf 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake @@ -81,7 +81,7 @@ find_path(EGL_INCLUDE_DIR ) find_library(EGL_LIBRARY NAMES - EGL + mali EGL HINTS ${PKG_EGL_LIBRARY_DIRS} ) diff --git a/cmake/FindGLESv2.cmake b/cmake/FindGLESv2.cmake index 4730418209..16f79437e8 100644 --- a/cmake/FindGLESv2.cmake +++ b/cmake/FindGLESv2.cmake @@ -8,7 +8,7 @@ include(CheckCXXSourceCompiles) if(EMSCRIPTEN) set(HAVE_GLESv2 ON) else() - find_library(GLESv2_LIBRARY NAMES GLESv2 OpenGLES) + find_library(GLESv2_LIBRARY NAMES mali GLESv2 OpenGLES) find_path(GLESv2_INCLUDE_DIR NAMES "GLES2/gl2.h" "OpenGLES/ES2/gl.h" DOC "The OpenGLES 2 include path") find_package(EGL) set(_libraries "${CMAKE_REQUIRED_LIBRARIES}") -- 2.25.1
  • Zoom and Drag in Maps Android

    Unsolved
    2
    0 Votes
    2 Posts
    245 Views
    O
    This code works fine for me. I am using 6.5.3. Map { id: mapView anchors.fill: parent plugin: mapPlugin center: QtPositioning.coordinate(39.0, 32.0) zoomLevel: 25 copyrightsVisible: true //Osm [0] street activeMapType: supportedMapTypes[0] PinchHandler { id: pinch target: null onScaleChanged: (delta) => { mapView.zoomLevel += Math.log2(delta) mapView.alignCoordinateToPoint(mapView.startCentroid, pinch.centroid.position) } onRotationChanged: (delta) => { mapView.bearing -= delta mapView.alignCoordinateToPoint(mapView.startCentroid, pinch.centroid.position) } } WheelHandler { id: wheel // workaround for QTBUG-87646 / QTBUG-112394 / QTBUG-112432: // Magic Mouse pretends to be a trackpad but doesn't work with PinchHandler // and we don't yet distinguish mice and trackpads on Wayland either acceptedDevices: Qt.platform.pluginName === "cocoa" || Qt.platform.pluginName === "wayland" ? PointerDevice.Mouse | PointerDevice.TouchPad : PointerDevice.Mouse rotationScale: 1/120 property: "zoomLevel" } DragHandler { id:drag target: null //grabPermissions: DragHandler.CanTakeOverFromAnything onTranslationChanged:(delta) =>{ mapView.pan(-delta.x, -delta.y) } }
  • Dbus for android latest version(API:34) support

    Unsolved
    2
    0 Votes
    2 Posts
    237 Views
    jsulmJ
    @Sajeesh-Sathyan said in Dbus for android latest version(API:34) support: Is D-Bus supported in the latest versions of Android? This is rather a question for Android forum