Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. When make window fullscreen subwindow disapear some times.
Qt 6.11 is out! See what's new in the release blog

When make window fullscreen subwindow disapear some times.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 165 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.
  • DanimaD Offline
    DanimaD Offline
    Danima
    wrote on last edited by
    #1

    I run this code in windows 10.
    when I clicked full-screen win2 sometimes is visible some times not.
    I don't want use stayTopHint flag. what should i do?

    import QtQuick 2.12
    import QtQuick.Window 2.15
    import QtQuick.Controls 2.13
    
    Window
    {
        id:win1
        visible:true
        width:900
        height:600
    
        Row{
            Button
            {
                text: "Fullscreen"
                onClicked: win1.showFullScreen()
            }
            Button
            {
                text: "maximized"
                onClicked: win1.showMaximized()
            }
    
        }
    
    
        Window
        {
            id:win2
            visible:true
            width:200
            height:100
            transientParent: win1
            flags: Qt.Dialog 
    
            Rectangle
            {
                anchors.fill: parent
                color:"black"
            }
    
        }
    
    }
    
    
    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