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. Remove Drawer Overlay
Forum Updated to NodeBB v4.3 + New Features

Remove Drawer Overlay

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

    Is there a way for me to remove the overlay that a Drawer opens up? My goal is to be able to get it to push the current view to the side when it is expanded, which I can accomplish with a transform Translate on my StackView.

    I saw on this post that I could probably change the Overlay properties, but I get a non-existent attached object error if I do something like:

    Overlay.modal: Rectangle {
        color: "#00000000"
     }
    

    If there's no way around this, I think I could use Popup since Drawer inherits from Popup, but I am not sure how to implement or customize it so that it functions the same way Drawer does expect for adding an overlay when it is open. This is what my current Drawer looks like:

    Drawer {
            id: drawer
    	width: Math.min(window.width, window.height) / 3 * 1.5
            height: window.height
            interactive: stackView.depth === 1
    
    	background: Rectangle {
    		anchors.fill: parent
    		color: "blue"
    	}
    ...
    
    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