Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2012

    Accordion for content on a Page


    I've looked various examples, mainly RSS Reader, which gave me some hints, but these seem to do much more that I would need and my guess is that there is a much more simpler way to implement this.

    Basically I'm trying to implement an page (AccordionArticlePage.qml), which would display an article where each heading is an accordion and by clicking it the text of that paragraph is displayed. The number of headings may vary based on content which I load from external source. I don't think the loading and population of the data will be difficult, but I don't seem to get started even displaying hard coded content.

    I didn't manage to find an example on display Accordions on a Page. Could somebody give me a hint here. Thanks!

  2. #2
    Registered User
    Join Date
    Jul 2012

    Re: Accordion for content on a Page

    I managed to get some basic accordion working with the RSS Reader example, so I think I can manage by my own from here. Thanks.

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Oslo, Norway

    Re: Accordion for content on a Page


    There's also the expanding delegates example that has something similar what you're trying to do. Basically, you can just declare two states for your delegate, one that show only the heading, and another with all the content. You can control the position/width/height/opacity properties of delegate child elements, and use transitions to animate the 'show/hide details' action.

Similar Threads

  1. How to use Accordion List to link?
    By ShekChien in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-05-12, 11:06
  2. Content of this page corrupted
    By Sahrear in forum Automatic Feedback Channel
    Replies: 3
    Last Post: 2010-03-29, 16:23
  3. Displaying the content of a web page
    By avi1000 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-09-07, 19:57
  4. How to display the content on same page?
    By youzx in forum Browsing and Mark-ups
    Replies: 5
    Last Post: 2007-08-31, 01:07
  5. unsupport content page
    By auwuisien in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-09-20, 10:02

Posting Permissions

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