Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt on Android: Painter not active

Qt on Android: Painter not active

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Schroedingers tiger
    wrote on last edited by
    #1

    Hey guys!

    I am trying to receive a numerical user input from within a QML application when the user clicks on an button. Because QtQuick does not provide something like QInputDialog yet, i did a workaround and added a widget-based class to my project which provides a wrapper to QInputDialog::getInt(...).
    When I try to call it via the context properties system, all works fine on my desktop computer (Linux, 64 bit) but not on my Android device which is actually my target. Nothing is shown there, but the rest of the app doesn't respond to any inputs until I press the "Back"-button on my device.

    Qt Creator shows a huge error log, it is included in the attachment (error.log).
    Once I click on the area which should show the dialog, there are lots of messages "painter not active" from somewhere in painter/qpainter.cpp. These messages continue to appear until i press the "Back"-button.
    Another interesting message is "WARNING: QApplication was not created in the main() thread." although I never wanted to start multiple threads,

    What could cause that problem and how to fix it? Or are there other possibilities among my workaround? Thank you for reading and answering.

    The example in the attachment is not my actual project but demonstrates the issue described above.

    Attachment (example project): http://www.file-upload.net/download-8473187/qt5qmltest.zip.html
    (accessible one year from original post)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved