Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Android 下面 跳转窗口为 透明
Qt 6.11 is out! See what's new in the release blog

Android 下面 跳转窗口为 透明

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 988 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.
  • T Offline
    T Offline
    THEFree
    wrote on last edited by A Former User
    #1
    var component;
    var sprite;
    
    function createSpriteObjects() {
        component = Qt.createComponent("qml/CircleFriends.qml");
        if (component.status == Component.Ready)
            finishCreation();
        else
            component.statusChanged.connect(finishCreation);
    }
    
    function finishCreation() {
        if (component.status == Component.Ready) {
            sprite = component.createObject(mainWindow, {"x": 0, "y": 0});
            if (sprite == null) {
                // Error Handling
                console.log("Error creating object");
            }
        } else if (component.status == Component.Error) {
            // Error Handling
            console.log("Error loading component:", component.errorString());
        }
    }
    
    

    按照官方例子,我使用这段代码,然后android app 里面就点击按钮,发现是一个透明窗口,a 打开 b ,a现在是不能点击的状态,但是b 又是透明的。现在不知道怎么办了,难道用loader 吗?好多新窗口啊,不方便

    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