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. Flickable layout issue(Solved)
Forum Updated to NodeBB v4.3 + New Features

Flickable layout issue(Solved)

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 2.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I have added Flickable or Listview inside a GridLayout. The content inside these control is not getting resized with the parent. Is there any solution for this.

    Regards
    Ansif

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      did you use :
      @anchors.fill: parent@

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [quote author="Eddy" date="1395759528"]did you use :
        anchors.fill: parent[/quote]

        Hello,

        Thank you for the quick reply.

        But i am doing something like this,
        @
        GridLayout {
        id: layout

            flow: GridLayout.LeftToRight
         
            Flickable {
            ..........
             }
        
            Flickable {
            ..........
             }
        

        }
        @

        There will two flickable item in the gridlayout. So how can i use anchor.fill for one flickable item. I think it will overlap the second item.

        [Please wrap your code in @ tags, Eddy]

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          I would use Splitview and put the 2 flickables as childs in it.

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Let me check thsi and i will update you soon.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              [quote author="Eddy" date="1395775063"]I would use Splitview and put the 2 flickables as childs in it.[/quote]

              Hey Eddy,

              It worked, SplitView is awesome. Thank you.

              Regards
              Ansif

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #7

                glad I could help

                Qt Certified Specialist
                www.edalsolutions.be

                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