Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.0k Topics 62.1k Posts
  • 0 Votes
    6 Posts
    138 Views
    Z

    So here is my findings. Maybe someone can give me a hint
    Applying any styleSheet on Android shifts Z-order of QMessageBox which makes its buttons unclickable

    Here what is going on:

    //setting styleSheet to any widget breaks interactivity on Android setStyleSheet("QPushButton { }"); QMessageBox::information(this,"Check the message", "Is it clickable?" ); //it is not clickable on Android

    But if we manually set Z-order to the message this message becomes clickable. But further ones ARE NOT

    setStyleSheet("QPushButton { }"); //applying styleSheet QMessageBox msgBox; msgBox.setText("StyleSheet is set. Z-order fixed"); //set stayOnTop flag and it becomes clickable msgBox.setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint); msgBox.exec(); //Next message is unclickable QMessageBox::information(this,"Check next message", "Is it clickable?" ); //No it is not clickable

    How to restore correct Z-order for all of my windows and messages after apllying a styleSheet in Android?

  • how to use virtual keyboard for stm32mp157d-dk1

    Unsolved
    2
    0 Votes
    2 Posts
    70 Views
    jsulmJ

    @sharan16k said in how to use virtual keyboard for stm32mp157d-dk1:

    when i try toimplement as given in the below page

    So, does it work or not?

  • Android Build in QT Creator will not install on phone

    Solved
    4
    0 Votes
    4 Posts
    51 Views
    JonBJ

    @scottm1982 That's good. Then to help other readers you can Mark as Correct your own final post.

  • 0 Votes
    4 Posts
    283 Views
    J

    The problem is CMake tries find in /qtbase/lib/cmake/Qt6Core/Qt6AndroidMacros.cmake, but Qt6AndroidMacros in /qtbase/src/corelib. Very stupid solution is change path in qtbase/src/corelib/Qt6CoreConfigExtras.cmake.in line 33 to absolute

  • 0 Votes
    13 Posts
    279 Views
    jsulmJ

    @Kaguro Please post whole build log.

  • Qt5.15.2 for Android: How to make tcp connection keepalived

    Unsolved
    2
    0 Votes
    2 Posts
    39 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
    245 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! :)

  • 0 Votes
    14 Posts
    333 Views
    V

    Thank you for the support. I will use this tool for further analysis.

  • Using 485 for QmodbusServer library

    Unsolved
    7
    0 Votes
    7 Posts
    997 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

  • 0 Votes
    3 Posts
    88 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
    25 Views
    No one has replied
  • AndroidExtras, import error

    Unsolved
    4
    1 Votes
    4 Posts
    239 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
    51 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
    67 Views
    S

    @Scott-Izi the StackOverflow is here

  • 0 Votes
    4 Posts
    329 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
    48 Views
    No one has replied
  • 0 Votes
    1 Posts
    101 Views
    No one has replied
  • gstreamer gst_parse_element_make: no element "video"

    Unsolved
    4
    0 Votes
    4 Posts
    137 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
    1k 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