Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
13.9k Topics 61.7k Posts
  • Gather crash related logs

    Unsolved
    1
    0 Votes
    1 Posts
    41 Views
    No one has replied
  • Boot2Qt raspberrypi 5 doesnt work with cam/disp 0 port

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • RSA Encryption

    Unsolved
    2
    0 Votes
    2 Posts
    61 Views
    SGaistS

    Hi,

    Do you mean something like QCA ?

  • Help completely disabling accessibility

    Unsolved
    2
    0 Votes
    2 Posts
    890 Views
    Q

    Although this is a very old question I think it's worth to mention this (I searched 3+ days to find a solution).
    In Qt 6.8 if you set this environment variable it causes the Accessibility manager in QtAccessibilityDelegate.java to completely disable itself:
    qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1");

  • 0 Votes
    3 Posts
    84 Views
    1

    Hi @jsulm thanks for answering...
    the only shortcut i have for qt environment is Qt 6.6.3 MinGW (11.2.0) 64 bits... i tried with it.. but still cant build for Android... i think it should be somewhere or somehow the same shortcut but for ARM and Intel Kits for Android.... that could have more sense...

  • need help on build for android

    Unsolved
    2
    0 Votes
    2 Posts
    69 Views
    jsulmJ

    @Prabhakaran said in need help on build for android:

    give me any sample codes for android

    What sample code do you need?
    Also take a look at:

    https://doc.qt.io/qt-6/android-getting-started.html https://doc.qt.io/qt-6/android.html
  • QT Creator fails to download Android SDKs [Ubuntu 24.10]

    Solved
    3
    0 Votes
    3 Posts
    100 Views
    D

    SOLVED: I had to type this command:
    sudo chmod $USER:$USER $ANDROID_SDK_ROOT
    I hope this will help unfortunate people like me, who couldn't figure this out for days or even months.

  • how to change API level ?

    Unsolved
    5
    0 Votes
    5 Posts
    940 Views
    1

    Android is crazy man.... is crazy... look... i use Unreal Engine and it setups Android SDK too.. that was enought to take down Qt Android SDK configuration... i can not understand why Android has so many versions of versions, why don't they have some universal platform or something like that..

    i have the table error too.. toggled off API 35.. but still Qt tries to use it..
    i guess i will make a clean (another) Windows install and try again..

  • Failed to Call java function from C++ on Android

    Solved
    10
    0 Votes
    10 Posts
    736 Views
    A

    @jsulm , Thank you so much. Now I understood. You got a new follower now.

  • 0 Votes
    1 Posts
    57 Views
    No one has replied
  • 0 Votes
    2 Posts
    85 Views
    LucasYuenL

    I have resolved the issue, as the /usr/share directory was not included in the sysroot.

  • How to use relative path on SQLite .db file on iOS

    Solved
    19
    0 Votes
    19 Posts
    402 Views
    K

    Here is the same code using appDataLocation

    void DatabaseManager::OpenConnection() { // Configure the database connection parameters for SQLite m_db = QSqlDatabase::addDatabase("QSQLITE"); // Use QStandardPaths to get the application data location QString dbName = "identifier.sqlite"; QString dbLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); QString fullDbPath = dbLocation + "/" + dbName; QDir dbDir(dbLocation); if (!dbDir.exists()) { if (dbDir.mkpath(dbLocation)) { qDebug() << "Created application data directory:" << dbLocation; } else { qDebug() << "Failed to create application data directory:" << dbLocation; return; // Exit if the directory cannot be created } } // Set the SQLite database file location m_db.setDatabaseName(fullDbPath); // Check if the database file exists in the application data location if (!QFile::exists(fullDbPath)) { qDebug() << "Database does not exist in AppDataLocation, copying from resources."; // Path to the resource database file QString resourceDbPath = ":/resources/identifier.sqlite"; // Adjust the path to your resource file // Attempt to copy the database from resources to the writable location if (QFile::copy(resourceDbPath, fullDbPath)) { qDebug() << "Database copied successfully to AppDataLocation."; // Set file permissions to writable (necessary for some platforms) QFile::setPermissions(fullDbPath, QFileDevice::ReadOwner | QFileDevice::WriteOwner); } else { qDebug() << "Failed to copy database from resources."; return; // Exit if the database cannot be copied } } // Open the database connection and handle success or failure if (m_db.open()) { qDebug() << "Database opened successfully."; // Sample query to verify the database contents } else { // Handle connection error qDebug() << "Database failed to open."; qDebug() << m_db.lastError().text(); } }
  • Qt 6.8.0 - Replacement for QtNative.activity()

    Solved
    5
    0 Votes
    5 Posts
    328 Views
    NaLogoN

    My workaround for the time being is as follows:

    Construct the Java class when the related C++ class is constructed Set Activity for the class Call static methods like before

    Java:

    private static Activity m_activity = null; public void setActivity(Activity activity) { m_activity = activity; return; }

    also change all methods that previously called QtNative.activity() to now check for and use m_activity instead.

    C++:

    mJNIInstance = QJniObject("the/qualified/ClassPath"); if (mJNIInstance.isValid()) { mJNIInstance.callMethod<void>("setActivity", "(Landroid/app/Activity;)V", QNativeInterface::QAndroidApplication::context().object()); } else { // output a warning or error }
  • Xcode build fails for ios 17.6

    Solved
    5
    0 Votes
    5 Posts
    186 Views
    K

    I needed to add developer mode and trust the developer on my iphone

  • 0 Votes
    10 Posts
    840 Views
    G

    @devin_qt i'm may find out how to solve this problem,you can fix it by changing the NDK_ROOT in qmake.conf.although must using Absolute path to build the project.
    qmake.conf in my set is C:\Qt\5.15.2\android\mkspecs\android-clang

  • Socketcan , Qt, Instrument Cluster

    Unsolved
    2
    0 Votes
    2 Posts
    83 Views
    aha_1980A

    @Qreator35 Are you aware of Qt's CAN support?

  • 0 Votes
    3 Posts
    108 Views
    D

    Hi, jsulm,

    Thanks for your reply.

    Yeap, I want the app to always stay on top.
    Because the Android system have a Activate Window always on the top of the screen.
    My program app must be in front of the Activate Window. And I must.
    I implemented a demo in Android Studio by using TYPE_SYSTEM_ALERT to on the top.
    But my full program is implemented using Qt.

    Need your advice.
    Daniel

  • Show Qt layout from Android (Dream)Service?

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    D

    Hi, AnQuter,

    Is your question solved?
    // setContentView(R.layout.dream); - how to use Qt app layout?

    How can I load Qt mainwindow.ui in java code?
    Thanks a lot.

  • 0 Votes
    2 Posts
    59 Views
    SGaistS

    Hi and welcome to devnet,

    From the looks of it, no there's nothing directly in Qt for that.
    You should take a look at the bug report system to see if there's something related to that.

  • 0 Votes
    4 Posts
    132 Views
    K

    I am now facing a problem with NetworkAuth and WebAssembly. I opened another request but got left behind
    https://forum.qt.io/topic/159704/how-to-install-qtnetworkauth-for-webassemby/8?_=1732390034893