Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.2k Posts
QtWS25 Last Chance
  • No space between letters in text

    Unsolved
    2
    0 Votes
    2 Posts
    459 Views
    B
    I have had another experiment with fonts. FontsMetrics gives me next results for text with letterSpacing set: qml: Font metrics: averageCharacterWidth: 12.84375| boundingRect("AAA"):QRectF(0, -22.0781, 51, 28.7969) And for letterSpacing not set: qml: Font metrics: averageCharacterWidth: 12.84375| boundingRect("AAA"):QRectF(100000, -22.0781, 0, 28.7969)
  • QT Build for Raspberry 3B on Windows 10

    Unsolved
    5
    0 Votes
    5 Posts
    419 Views
    E
    Oh wow ok I will try it. I will tell you if it workes.
  • Why cannot set screenGeometry on imx8 wayland backend

    Unsolved
    2
    0 Votes
    2 Posts
    298 Views
    jsulmJ
    @Aplix said in Why cannot set screenGeometry on imx8 wayland backend: I can not set the screen by screenGeometry . You are not setting the geometry based on screen geometry at all! You set it fixed to 0,0,800,480. Should be: QRect rect = m_desktopWidget->screenGeometry(1); this->setGeometry(rect);
  • QXcbConnection: XCB error:

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    E
    Any solution for this? am getting the same errors
  • Android SDK30+ WebView fails to show local files "ERR_ACCESS_DENIED"

    Unsolved
    2
    0 Votes
    2 Posts
    652 Views
    A
    It seems there's a bug reported, regarding this issue. Even though we can build app targeting older SDKs, google play now required all apps to target SDK30 minimum, so that's not a solution.
  • Rasbian Buster Lite and QStandardPaths::AppConfigLocation

    Unsolved
    3
    0 Votes
    3 Posts
    292 Views
    F
    Everything is identical. One project, one environment. The only difference is in the method of launching Ctrl+R or F5. Where did the $HOME variable come from then in the first case? I would understand if the variable was missing in both cases. Or I switched Release / Debug, but I do not. Thank you!
  • Any library as small as wxWidgets but as powerful as Qt?

    Unsolved
    2
    0 Votes
    2 Posts
    174 Views
    JKSHJ
    @Chopper90 Any reason why you're rejecting the answers from the post that you copied from? https://www.reddit.com/r/cpp/comments/9q07bu/any_library_as_small_as_wxwidgets_but_as_powerful/
  • android canbus

    Unsolved
    4
    0 Votes
    4 Posts
    335 Views
    SGaistS
    Open the module .pro file in Qt Creator and build it with the appropriate Qt kit. Then go into the build folder and call make install.
  • How to build MQTT for android devices?

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    X
    [image: 0463353d-9006-4500-894c-20a0c4bbcb57.png] [image: 298bad18-ddf7-4110-b462-7243f356b779.png] [image: 5fc72d0d-3984-44f1-bbcc-031889b6c0d5.png] [image: 2a3f907e-e370-4561-83ee-3f1dd1f5ced8.png] The library has been generated, but the compiled Android application cannot be run [image: 53b06ce8-2164-471d-b8f7-2039b2034a3c.png]
  • Qt 6.2.1 QAndroidService No such file or directory

    Solved
    8
    0 Votes
    8 Posts
    761 Views
    G
    @KroMignon yep I saw this doc but i had problem with including QAndroidService in my cpp code but after adding QT += core-private and using #include <QtCore/private/qandroidextras_p.h> instead of #include <QAndroidService> project start compile
  • Qt Creator Kit for BeagleBone Black (Debian 9)

    Unsolved
    2
    0 Votes
    2 Posts
    313 Views
    SGaistS
    Hi and welcome to devnet, You need to setup your Windows machine for cross-compilation and then cross-compile Qt for your target. Doing it on Linux is usually way easier. Maybe WSL2 may allow you to do that as well.
  • Android: E Qt JAVA : Surface 1 not found!

    Unsolved
    4
    3 Votes
    4 Posts
    1k Views
    M
    I should probably add that the StringExtra bit only works if the shared data is small, as it is in my case. If importing bigger files, then I suppose the processViewIntent() would need to copy the file into the apps cache in one way or another, as ekke already said. But the self-restarting bit through firing a new Intent should be applicable in any case.
  • FLAG_KEEP_SCREEN_ON and Android 30

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    mrdebugM
    This approach works on Android 6 and 11 package it.denisgottardello.metronome.metronometouch; public class MetronomeTouchMain extends org.qtproject.qt5.android.bindings.QtActivity { @Override public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } } This approach works on Android 6 but not on Android 11 QAndroidJniObject activity = QtAndroid::androidActivity(); if (activity.isValid()) { QAndroidJniObject window = activity.callObjectMethod("getWindow", "()Landroid/view/Window;"); if (window.isValid()) { const int FLAG_KEEP_SCREEN_ON = 128; window.callObjectMethod("addFlags", "(I)V", FLAG_KEEP_SCREEN_ON); } }
  • 0 Votes
    5 Posts
    1k Views
    AxelViennaA
    @glassez Well, brief is brief. That's what I said. After all, connect returns a boolean result, to tell (briefly) if it has succeeded or failed. Deliberate and consequent ignorance of such results in class constructors is a gamble. If you believe that the reason may be OpenWRT, so be it. I tend to believe in (and briefly summarize) what I see.
  • Building an(or multiple) android app(s) as part of an existing cmake project

    Unsolved
    2
    0 Votes
    2 Posts
    358 Views
    J
    I also have the same requirement of several Android applications within one CMake project. @MS_36 May I ask how you overcame this?
  • 0 Votes
    2 Posts
    378 Views
    C
    Is there any solution to the packaging and use of Android AAR
  • degree Celsius symbol not displayed in Qt QML

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    V
    @JKSH said in degree Celsius symbol not displayed in Qt QML: toLocal8Bit Code is working correctly with toLocal8Bit() on another device with same bsp & h/w. Only one change is on my device I had updated bsp version & then downgrade it (for testing purpose) , In this process some lib/config may be not reset/remove correctly due to this representation problem comes. Now I have change toLocal8Bit() to toUtf8() and now it works on both devices. tr(QString(array[0]).replace("%1",sign+array[2]).toUtf8()); Thanks to all for help
  • how to build apk target for API level 30 by using qt5.12.4

    Unsolved
    3
    0 Votes
    3 Posts
    630 Views
    C
    @jsulm Thanks a lot Try 1: Due to there is no 30 in QT 5.12.4: [image: f5fa081d-3420-46e9-882d-3d5ccf01c2ca.png] I tried to add: <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="30"/> so I manually set 30 in AndroidManifest.xml, android 64bit apk is built, but the app can not connect with wifi, and log get this " QNetworkInterface/AF_NETLINK: found unknown interface with index 1 .... If set android:targetSdkVersion="29", has no any issue. Try 2: I update with QT 5.15.6, Android Qt 5.15.6 Clang Multi-Abi, and set this in build.gradle: defaultConfig { resConfig "en" minSdkVersion = 22 targetSdkVersion = 30 } App could be build on usb-connected Android 12 device (Pixel5), but even login can not show up. only show app icon at the top of while background. Would you mind give me some suggestion or hint to solve this? thanks a lot
  • QSerialBus Peakcan timestamp

    Unsolved
    3
    0 Votes
    3 Posts
    235 Views
    G
    I check if the Peak hardware is working properly with the peakcan view tool and there I get the correct time stamps.
  • Loadmore logic implementation

    Solved
    2
    0 Votes
    2 Posts
    215 Views
    Q
    Logic: 1] maintain the session id 2] get session id which needed 3] add and remove session id on button click