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. ScrollView include elements that aren't children
Qt 6.11 is out! See what's new in the release blog

ScrollView include elements that aren't children

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

    I need to include a rectangle in the scrollbar area, I can drag it from the header to the content of the page, then this will work, but I need this rectangle exactly in the header(I need this rectangle on several pages).

    ApplicationWindow {
        id: appwindowwindow
        width: 800
        height: 600
        header: Item
        {
          id: item
          width: appwindow.width
          Rectangle  {
                   id: myRec
                   width: 300
                   height: 200
                   radius: 2
           }             
        }
          ScrollView {
                  id: scroll
                  ScrollBar.vertical.policy: ScrollBar.AlwaysOn
                  ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
                  ScrollBar.vertical.interactive: true
           Page
          {
                id: firstPage
                ColumnLayout  {
                              //there are many objects     
             }
        
           }
        }
    }
    
    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