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 to hide application in ApplicationWindow?
Forum Updated to NodeBB v4.3 + New Features

How to hide application in ApplicationWindow?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 124 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.
  • C Offline
    C Offline
    Creatorczyk
    wrote on last edited by Creatorczyk
    #1

    Hi,

    I would like to add support for the undo button in the Android mobile application in ApplicationWindows. Unfortunately, after adding "Keys.onBackPressed" the signal is not intercepted. In other places it works fine. What could it be caused by? I want to close or hide my application in cards.

    ApplicationWindow {
        id: appMainID
    
        visible: true
        title: qsTr("Tabs")
        signal closeWindow
    
         Keys.onBackPressed: {
            console.log("Backbutton main event");
            Qt.quit()
          }
    
    //Other code blocks - In the code I also have other elements such as SwipeView
    
    }
    
    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