×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    qml listview size modification

    i have a list view associated with mouse area.i want to change the height or margin of list view in oncliked event of mouse.any answer plz????




    Thanks in advance

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: qml listview size modification

    what abt setting up list.height and list.leftmargin etc on click on mouse area?

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: qml listview size modification

    i check these its not working

  4. #4
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: qml listview size modification

    list.topMargin=0 get error Cannot assign to non-existent property "topMargin"

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: qml listview size modification

    hello adnanShoukat

    i dont think listview has a topMargin property but i guess you need to set listview.anchors.topMargin = something, that should work for you.
    Last edited by gaba88; 2012-04-10 at 07:52.

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: qml listview size modification

    it is list.anchors.topMargin=0

  7. #7
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: qml listview size modification

    Quote Originally Posted by gaba88 View Post
    hello adnanShoukat

    i dont think listview has a topMargin property but i guess you need to set listview.anchor.topMargin = something, that should work for you.
    Listview is inherited by Flickable and Flickable is inherited by Item. Item have this property. So list view have anchors property .
    Last edited by kkrish; 2012-04-10 at 07:48. Reason: typo

  8. #8
    Registered User
    Join Date
    Mar 2012
    Posts
    87

    Re: qml listview size modification

    thanks gabba88 ur suggestion work for me.thnk u very much...

Similar Threads

  1. ListView inside ListView
    By hassan kassem in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-10-20, 10:53
  2. M3G file modification...
    By priteshj2me in forum Mobile Java General
    Replies: 0
    Last Post: 2010-02-23, 04:35
  3. bmpmanip modification
    By yfho in forum Symbian
    Replies: 0
    Last Post: 2003-08-19, 11:02
  4. PNG modification
    By LY in forum Mobile Java General
    Replies: 0
    Last Post: 2002-12-13, 07:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •