×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    36

    QML Sliding Pages

    I have to use this example http://www.developer.nokia.com/Commu..._Sliding_Pages but each page contain text, image then text.

    is it doable, thanks in advance.

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

    Re: QML Sliding Pages

    yes a.dev

    its completely possible, you need to design your delegate plus model in that way thats all.

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    36

    Re: QML Sliding Pages

    thanks gaba88

    could you please send sample of code for this issue?, as this is a first App. in QML.

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

    Re: QML Sliding Pages

    Hello a.dev

    I don't have a sample code for that but, what you can try is making a delegate with a text and image in it. Just change the opacity of them based on alternative index property of listview.

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    36

    Re: QML Sliding Pages

    thanks gaba88 for your reply,

    I'm already finished the delegate and model, the cpp file send the data Model List to delegate(QML file), my question is: is there any way to send data or user action from delegate to cpp file?.

    I know the signal/slot connect but my question using the model.

    and how to seek to specific index in the delegate.
    Last edited by a.dev; 2012-05-09 at 18:53.

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

    Re: QML Sliding Pages

    if you use just index , than you will get the index of listview , now whenever user clicks an item, you can call a method in c++ which has the parameters you require.

    Let me know if you need help to know how to invoke a method from QML to c++??

  7. #7
    Registered User
    Join Date
    Jul 2010
    Posts
    36

    Re: QML Sliding Pages

    thanks for your raply,

    I have to know how to tell the delegate to open the listview on specific index, for example: if I have 5 items, the list view open by default index 0 but i want the listview open the index 2 or 3 and how to send the required index to delegate.

Similar Threads

  1. Sliding images dynamically
    By nikhil3298 in forum Symbian User Interface
    Replies: 16
    Last Post: 2012-02-06, 17:14
  2. Image sliding
    By fecxelmin in forum Mobile Java General
    Replies: 7
    Last Post: 2010-05-12, 10:28
  3. how to retrieve saved pages (.wml pages)
    By karen_cat in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2005-01-30, 22:23

Posting Permissions

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