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. How transmit gestures through transparent QMainWindow part to underlaying activities?
Forum Updated to NodeBB v4.3 + New Features

How transmit gestures through transparent QMainWindow part to underlaying activities?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 311 Views
  • 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.
  • G Offline
    G Offline
    Gourmet
    wrote on last edited by Gourmet
    #1

    In Android all gestures are caught by QMainWindow if application runs. I have part of QMainWindow transparent - other non-transparent part holds QGraphicsView with some widgets. QGraphicsView can be changed by intercepted pich gesture. Through other part of QMainWindow I can see other Android and application activities. But QMainWindow doesn't allow translate gestures to them. They are just "pictures". What I have to do to allow gestures transmit to other activities visible through transparent QMainWindow part?

    I tried:

    1. Use of mainwindow.setAttribute( Qt::WA_TranslucentBackground ) with mainwindow.setAttribute( Qt::WA_TransparentForMouseEvents ). This does not change anything.
    2. Scale mainwindow.resize(mainwindow.ui->graphicsView->size()). With this Android does not refresh desktop outside main window after scale. And Android still does not receive gestures outside main window. Only gestures over main window are accepted, others are ignored.

    How can I tell main window or Qt application to translate all gestures and taps if they are made on transparent QMainWindow part? May be something must be added/tuned in AndroidMainfest.xml?

    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