Results 1 to 2 of 2

Thread: How to move next page in stackedwidget ?

  1. #1
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Smile How to move next page in stackedwidget ?

    Hi,

    Which method should I use to call the next page in a stackedwidget.

    Whenever the user clicked the pushbutton the widget shoud show the next page.
    how can I accomplish this ?

  2. #2
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to move next page in stackedwidget ?

    Qt Code:
    1. int nextIndex = stackWidget->currentIndex() + 1;
    2. if( nextIndex < stackWidget->count())
    3. stackWidget->setCurrentIndex(nextIndex);
    To copy to clipboard, switch view to plain text mode 

    But there is no direct slot to call nextWidget or something like that

  3. The following user says thank you to Gopala Krishna for this useful post:

    npc (10th January 2007)

Similar Threads

  1. How to open external page link using tabwidget
    By jyoti in forum Qt Programming
    Replies: 2
    Last Post: 13th November 2006, 10:43
  2. QWidget display on 2 stack widget page
    By spawnwj in forum Qt Programming
    Replies: 3
    Last Post: 4th September 2006, 12:07
  3. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 18:22
  4. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00
  5. Change the text color tab page
    By gtthang in forum Qt Programming
    Replies: 4
    Last Post: 18th February 2006, 17:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.