Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Multiple pages in QStackedWidget

Multiple pages in QStackedWidget

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 6.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yannifan
    wrote on last edited by
    #1

    down vote favorite

    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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      I just tried it, but I can not reproduce the issue. Works just fine for me.

      What platform are you working on? What Qt version?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        QStackedWidget does not have a limit itself. It may be that Qt Designer and/or the designer component of Creator has some internal limit on the number of pages.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          I tried adding 13 pages to a stacked widget in designer. Worked for me.

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yannifan
            wrote on last edited by
            #5

            Hello
            Im using QTCreator with QT SDK1.1 RC running on Win7.

            When I add the page, the page itself is displayed in the UI. However the page object is not created in the code nor added onto QStackedWidget object. Trying to add it manually crashes QTCreator when I run the application.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved