×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    61

    Multiple pages in QStackedWidget

    Hello

    Im trying to develop an application and I have used QStackedWidget inside the main Central Widget of the QMainWindow.
    However Im not able to create more than 10 pages in the Stack Widget. The page_11 shows up in the UI, but the code is not getting generated. On manually adding the object and adding it, QTCreator crashes.
    I tried creating a new StackedWidget so that I can add another page, however the same problem persists. The code is not getting generated. Is there a limitation on the number of pages inside a stackedwidget or the number of stackedwidget allowed to create.

    Please help
    Thank you

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Multiple pages in QStackedWidget

    Create each page as a separate widget, and add them to the QStackedWidget programatically.

  3. #3
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Multiple pages in QStackedWidget

    No, there is no limit in the page you can add to the Qt stacked widget.
    If the cpp code is not getting generated by the UI, you have to check that .ui file is listed in your project file, then qmake and make again.

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    61

    Re: Multiple pages in QStackedWidget

    Sorry for the late reply. I copied the important .h .cpp and .ui files into a new fresh project and everything worked. I have no idea why. But it works now.

Similar Threads

  1. custom QWidget and QStackedWidget in Qlayout
    By mj_124949727@126.com in forum Qt
    Replies: 1
    Last Post: 2010-11-30, 16:48
  2. QCamera+QVideoWidget in a QStackedWidget on Ubuntu gives an X error
    By Faider in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2010-07-02, 15:00
  3. Anybody knows when will nokia 5800 get new homescreen with multiple pages
    By ramesh5180 in forum General Development Questions
    Replies: 4
    Last Post: 2010-05-12, 19:10
  4. Soft keys for multiple pages
    By nithyas in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-08-08, 13:12
  5. Problem of multiple pages
    By chheang in forum Symbian
    Replies: 1
    Last Post: 2002-09-04, 07:25

Posting Permissions

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