Results 1 to 2 of 2

Thread: How to implement page switching?

  1. #1
    Join Date
    Feb 2010
    Posts
    12
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to implement page switching?

    I'm a fresh man, I want to implement an application with many pages , for examples, when the application first runs, there is 2 buttons, when I press one button, turn to the other page, with 3 different buttons. All these pages are created in Qt Designer, and they are ".ui"files.

    I don't know how to implement this page switching , some one help me , thanks a lot

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to implement page switching?

    try QStackedWidget and switch its pages using setCurrentIndex(int)
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. How can I support page up/page down on QTextEdit
    By wesley in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2010, 19:18
  2. Switching between two databases
    By codeman in forum Qt Programming
    Replies: 20
    Last Post: 13th May 2009, 14:33
  3. Switching 5.2 from 5.0.2
    By baray98 in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:59
  4. Switching off all tabs in QTabWidget
    By Gopala Krishna in forum Qt Programming
    Replies: 7
    Last Post: 30th August 2006, 17:10
  5. switching between pages
    By Kapil in forum Newbie
    Replies: 9
    Last Post: 6th March 2006, 10:57

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
  •  
Qt is a trademark of The Qt Company.