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
  • Japanese characters(Kanji) is not displayed correctly in TextArea

    Unsolved
    1
    0 Votes
    1 Posts
    274 Views
    No one has replied
  • QT Creator Device Test fails

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    aha_1980A
    @Noushad SFTP will be used for deployment, because rsync is not available.** I read that as, you can fully deploy to that device with SFTP. It seems to be the second option, maybe it is a bit slower. **rsync failed with exit code 12: command-line: line 0: Bad configuration option: \stricthostkeychecking For some reason rsync fails. stricthostkeychecking looks like a ssh configuration, but that's just a guess. Anyway, I think this setup should work. Regards
  • Callback from Android to QML

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    SyntaXS
    thanks for your reply, this was indeed very helpful :D I declared my "callback" function in the .java file with the native keyword: public class MyJavaClass { // callback handler to send notifications back to c++ public static native void StringChanged(String mystring); public void doSomeStuff () { // do stuff, then emit changes back to c++ StringChanged("my new string"); } } Then I registered those functions in my implementation void StringChangeReceived(JNIEnv *env, jobject obj, jstring newstring) { Q_UNUSED(obj) QString qString(env->GetStringUTFChars(newstring, 0)); qDebug().noquote().nospace() << "callback from Android received: " << qString; // to be able to emit the changes I either need an instance or (what I decided) a classic singleton if (nullptr != instance) { instance->myStringChanged(qString); } } void init () { // install callback for notifications received QAndroidJniEnvironment env; JNINativeMethod methods[] = { { "StringChanged", "(Ljava/lang/String;)V", reinterpret_cast<void*>(StringChangeReceived) } }; QAndroidJniObject javaClass("path/to/my/JavaClass"); jclass objectClass = env->GetObjectClass(javaClass.object<jobject>()); env->RegisterNatives(objectClass, methods, sizeof(methods) / sizeof(methods[0])); env->DeleteLocalRef(objectClass); } With this I realised at least a most basic full roundtrip, from my qml -> over the c++ class -> to the native java class on the android device -> and back over c++ -> to qml. :DDD Is it common practice to use that in combination with singletons? (Because I think I need them everywhere because of the static call?) Are there best practices or key values to that kind of implementation? best regards an thank you very much, SyntaX
  • Exchanging data between Android Activity and Qt cpp

    Unsolved
    2
    0 Votes
    2 Posts
    317 Views
    KroMignonK
    @mrdebug said in Exchanging data between Android Activity and Qt cpp: void OnNFCState(jstring Value) { Environment->GetStringUTFChars(Value, nullptr); } I know this post is old, but just see it today for the first time. To resolve your issue, simply use QAndroidJniObject::toString(), like this: void OnNFCState(jstring Value) { qDebug() << "Value is" << QAndroidJniObject(Value).toString(); }
  • How do I get account data from phones?

    Unsolved
    3
    0 Votes
    3 Posts
    341 Views
    guerinoniG
    @Mikeeeeee do you want retrieve you Qt account information? something like "forgot password"???
  • WatchOS application with qt c++ ios base?

    Unsolved
    4
    0 Votes
    4 Posts
    784 Views
    O
    @H4lu did you manage to do anything ? is the mixing qt / xcode strategy working ?
  • Refunds of in-app purchases

    Unsolved
    1
    1 Votes
    1 Posts
    168 Views
    No one has replied
  • [QT BLE]: Can't scan out the BLE devices on Galaxy S10.

    Unsolved qt ble s10
    2
    0 Votes
    2 Posts
    798 Views
    Z
    On S10, the system app[setting->connecting] can scan out my device. But my qt app can't.
  • Qt stacked widget border style and color

    Unsolved
    2
    0 Votes
    2 Posts
    903 Views
    jsulmJ
    @SachinBhat Aren't you changing QGroupBox style instead of QStackedWidget?
  • QT android SSL authentication certificate adding with apk to run on android device

    Unsolved
    3
    0 Votes
    3 Posts
    643 Views
    Pablo J. RoginaP
    @AMOL said in QT android SSL authentication certificate adding with apk to run on android device: I am using client certificate for ssl authentication Could you show your Qt code?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • 0 Votes
    4 Posts
    567 Views
    N
    @SGaist Thank you for your response. Yes it was commercial, but recently expired. So I cant't get a support.
  • How to connect to the Android payment system

    Solved
    2
    0 Votes
    2 Posts
    195 Views
    SGaistS
    Hi, The Qt Purchasing module seems like what you are looking for.
  • Qt using ssh connection to debug embedded device:"Permission denied"

    Unsolved
    5
    0 Votes
    5 Posts
    773 Views
    Pablo J. RoginaP
    @rwetfer said in Qt using ssh connection to debug embedded device:"Permission denied": solved. would you mind sharing how you solved? It may help others facing same situation... And in any case, please don't forget to mark your post as solved!
  • Cross-Compilation Embedded Board

    Unsolved
    2
    0 Votes
    2 Posts
    313 Views
    aha_1980A
    Hi @Bravepaulo Most of the tutorials that I see require to have the board connected to the computer when performing the cross-compilation, and it does not add up to me. Is ti required to connect the board for a cross-compilation using QT? Definitely not. You need the cross toolchain, and a crosscompiled Qt - either provided or self compiled. You need the board to deploy and debug your app, though. Another question, when I try to set up the kit em QT for cross-compilation I am not able to find the device that I want in the list available in QT. I can add the device, but it shows only two types (Generic Linux Device and QNX device) and my board is a pixhawk. Thats Ok, as long as it runs Linux ;) Regards
  • Which one will be right choice for android app Kotlin vs java?

    Locked Unsolved
    2
    0 Votes
    2 Posts
    335 Views
    J.HilkJ
    @bathosborne said in Which one will be right choice for android app Kotlin vs java?: Which one suits best with android app development? The answer is Qt Locked and deleted as obvious spam
  • qobjdefs.h compile error

    Unsolved
    2
    0 Votes
    2 Posts
    212 Views
    SGaistS
    Hi and welcome to devnet, What version of Qt are you cross-compiling ? Are you using the same compiler on both systems ? What do you mean by cloning kits ?
  • cpputest issue with QTest to show the widget on embedded linux

    Unsolved
    15
    0 Votes
    15 Posts
    2k Views
    SGaistS
    No because exec is a blocking call. One thing I would try is to use a single shot QTimer with a lambda to call RunAllTests.
  • Qt 5.12.2 Raspberry Pi X11

    Solved
    19
    0 Votes
    19 Posts
    8k Views
    S
    @Lashc said in Qt 5.12.2 Raspberry Pi X11: 12.2 to my Raspberry Pi 3 B+ f Hello, I'm also using same setup RPi 3B+ with Qt5.12.2 facing the same issue with xcb. i've tried all above mentioned solutions nothing works for me. Could you solve the issue? Thanks in advance.
  • compiling and adding openssl for QT android apk

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    A
    Good news!!! I am able to resolve issue, Reason is I have to use QT 5.13.1 instead of 5.13.0. Thank you all for helping me out and suggesting different solution. Good day and Happy coding!!! :) :) :)