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
  • Qt Android, how can I get MotionEvent.getToolType() equivalent ?

    Unsolved
    1
    0 Votes
    1 Posts
    189 Views
    No one has replied
  • How to add large data files in APK

    4
    0 Votes
    4 Posts
    1k Views
    M
    I suggest deleting this thread or fix link Link is dead :(
  • Saving Image to Android Device - Qt6 for Android

    Unsolved
    1
    0 Votes
    1 Posts
    256 Views
    No one has replied
  • Building QT with Yocto dunfell

    Unsolved
    1
    0 Votes
    1 Posts
    224 Views
    No one has replied
  • How to convert Android content url and use it to open file?

    Unsolved android file dialog ios mobile file
    10
    0 Votes
    10 Posts
    8k Views
    ekkescornerE
    @shokarta try with Android FileDialog FileDialog { title: qsTr("Select a File") fileMode: FileDialog.OpenFile onAccepted: { if(selectedFiles.length) { console.log("we selected: ", selectedFiles[0]) Selected File 'München.pdf' from FileDialog ...this gives you per ex: content://com.android.providers.downloads.documents/document/32 // you can check from C++ and verify fileUrl: QFileInfo fileInfo(fileUrl); qDebug() << "verifying fileUrl: " << fileUrl; qDebug() << "BASE: " << fileInfo.baseName(); qDebug() << "FileName: " << fileInfo.fileName(); qDebug() << "Path: " << fileInfo.path(); qDebug() << "absoluteFilePath: " << fileInfo.absoluteFilePath(); return fileInfo.exists(); this gives you: verifying fileUrl: "content://com.android.providers.downloads.documents/document/32" BASE: "München" FileName: "München.pdf" Path: "content://com.android.providers.downloads.documents/document" absoluteFilePath: "content://com.android.providers.downloads.documents/document/32" file exists
  • Kotlin in QT Project. How?

    Solved
    13
    0 Votes
    13 Posts
    8k Views
    P
    You can use Qt in Java (so also in Kotlin) using QtJambi. I made the application Mouse Melon with Kotlin and Qt.
  • How to add libpng16.so to .apk ?

    Solved
    3
    0 Votes
    3 Posts
    595 Views
    M
    @cristian-adam Thank you very much
  • QPainter doesn't draw lines or images

    Solved
    5
    0 Votes
    5 Posts
    462 Views
    A
    I found that the scribble project in the widjets example directory controls a mouse event to draw a line or image. So I think that I create the signature capture function by using it. Thanks
  • Board Support Package for Raspberry Pi 5

    Unsolved
    1
    0 Votes
    1 Posts
    191 Views
    No one has replied
  • Qt 6.7.1 Android Missing Input Handlings

    Unsolved
    8
    0 Votes
    8 Posts
    806 Views
    E
    Looks like the fixed this issue with a partial revert for Qt 6.8+ See: https://codereview.qt-project.org/c/qt/qtbase/+/566570 Wish they'd back port to 6.7, but I understand...
  • qt5 andoid setup for ubuntu

    Unsolved
    2
    0 Votes
    2 Posts
    216 Views
    Axel SpoerlA
    Have you checked the 5.15 documentation?
  • screenshot

    Unsolved
    13
    0 Votes
    13 Posts
    3k Views
    L
    Hello, has your problem been resolved? I have also encountered this situation and would like to ask you how to handle it
  • error while loading shared libraries: libts.so.0

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    A
    I have added the library path, "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/tslib/lib" So the project, fingerpaint is working. Thanks JonB.
  • Qt for android, QWidget is not in the layout, Display abnormalities

    Unsolved
    3
    0 Votes
    3 Posts
    413 Views
    N
    @SGaist developing OS: Windows10 Dialog::Dialog(QWidget *parent) : QDialog(parent) , ui(new Ui::Dialog) { ui->setupUi(this); if(parent) { parent->installEventFilter(this); } } bool Dialog::event(QEvent *event) { if(!parent()) { return QWidget::event(event); } switch(event->type()) { case QEvent::ParentChange: { parent()->installEventFilter(this); setGeometry(overlayGeometry()); break; } case QEvent::ParentAboutToChange: { parent()->removeEventFilter(this); break; } default: break; } return QWidget::event(event); } bool Dialog::eventFilter(QObject *obj, QEvent *event) { switch(event->type()) { case QEvent::Move: case QEvent::Resize: setGeometry(overlayGeometry()); break; default: break; } return QWidget::eventFilter(obj, event); } QRect Dialog::overlayGeometry() const { QWidget *widget = parentWidget(); if(!widget) { return QRect(); } return widget->rect(); } And MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); m_form = new Dialog; m_form->hide(); m_form->setParent(ui->widget_2); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { m_form->show(); } void MainWindow::on_pushButton_2_clicked() { m_form->hide(); } As shown in the figure, "widget_1" is on the left and "widget_2" is on the right, "dialog.ui" is all filled with pink [image: cb18ac88-a221-44c3-b2d8-2b18adf9d851.png]
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Can I develop for Amazon Fire tablet?

    Unsolved
    3
    1 Votes
    3 Posts
    375 Views
    J.HilkJ
    yes and no, a simple Hello World Qt program should work out of the box and without much trouble. But FireOS does not have access to Google Play Services and requires other specific modifications. For example changes in the AndroidManifest files for e.g. permissions. But it is a version of android, so you should be able to change specifics in your project and build scripts to make adjustments as needed. There's no guarantee that it will work out of the box, but nothing a documentation and access to internet won't be able to solve :D
  • install tslib on the ubuntu 18.04

    Solved
    2
    0 Votes
    2 Posts
    337 Views
    SGaistS
    Hi, By getting a tslib built for arm since it's your target.
  • 0 Votes
    3 Posts
    1k Views
    D
    @gregory109 I tried: QtJniTypes::Context context = QNativeInterface::QAndroidApplication::context(); m_javaObject = QJniObject("org/qtproject/qt/android/purchasing/InAppPurchase", "(Landroid/content/Context;J)V", context, this); but it did not help. Looks like QtJniTypes::Context is not a trivial type defined with Q_DECLARE_JNI_CLASS(Context, "android/content/Context").
  • QT_CONFIG undefined error

    Solved
    3
    0 Votes
    3 Posts
    379 Views
    A
    I have solved this problem using the example of the qt 4.8.5. It was the version mismatching problem. Thanks
  • Android "PlainTextField UI Problem"

    Unsolved
    1
    0 Votes
    1 Posts
    139 Views
    No one has replied