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. putting items into a Drawer?
Forum Updated to NodeBB v4.3 + New Features

putting items into a Drawer?

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

    Hi all -

    I'm trying to put a ScrollBar in my Drawer, and it's not working. I can post code and pics, but first I thought I'd ask - am I trying to perform an unnatural act here?

    Thanks...

    EDIT:

    In fact, I seem to be having trouble putting something as simple as a rectangle in my drawer:

    Rectangle {
        id: tile
    
        property string drawerFile: "" // supplied by caller; value is "Pump.qml"
    
        Drawer {
            id: drawer
            width: parent.width * 0.7
            height: mainWindow.height
    
            Loader {
                id: drawerLoader
                active: drawer.opened
                source: tile.drawerFile 
            }
        }
    ...
    // Pump.qml
    Item {
        anchors.fill: parent
    
        Rectangle {
            height: parent.height
            width: parent.width
            color: 'blue'
            border.color: 'black'
            border.width: 3
        }
    

    The rectangle doesn't show up at all. If I use an image, that shows up fine, so I'm guessing there's something wrong with my size "inheritance" somewhere between the Drawer and the Rectangle. Can someone see what I'm doing wrong?

    Thanks...

    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