Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to Create Page-wise menu
Forum Updated to NodeBB v4.3 + New Features

How to Create Page-wise menu

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 859 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.
  • Naveen_ksN Offline
    Naveen_ksN Offline
    Naveen_ks
    wrote on last edited by
    #1

    I am new to Qt creator, I am trying to create a page-wise menu using Qt, which includes 4 items in one page and total of 9 menu and 3 pages I need to create. So that when ever I reach the end of the first page the next page should appear with new menu on the display.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi and welcome
      QStackedwidget is good for a page design.

      However, its unclear to me what
      "reach the end of the first page"
      means.

      you scroll the page or how can one reach the end?
      Are you talking about web pages?

      1 Reply Last reply
      2
      • Naveen_ksN Offline
        Naveen_ksN Offline
        Naveen_ks
        wrote on last edited by
        #3

        I am using UP/DOWN buttons for scrolling down the items.
        Currently what I am seeing is continuous display of menus one by one if I keep on pressing down button. But what I want is when I reach the 4th menu then if i press down button the page in the display should show from 5-8 menu items then again once i reach 8th menu and I press down button i should see next 4 menu items (i.e 9-12).

        Ni.SumiN 1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          but what do you have now?
          Show some code :)
          I have no idea what u see. and what menus are.

          1 Reply Last reply
          1
          • Naveen_ksN Naveen_ks

            I am using UP/DOWN buttons for scrolling down the items.
            Currently what I am seeing is continuous display of menus one by one if I keep on pressing down button. But what I want is when I reach the 4th menu then if i press down button the page in the display should show from 5-8 menu items then again once i reach 8th menu and I press down button i should see next 4 menu items (i.e 9-12).

            Ni.SumiN Offline
            Ni.SumiN Offline
            Ni.Sumi
            wrote on last edited by
            #5

            @Naveen_ks

            Do you want to limit the visible items under the main menu? like only 4 at a time , not more than that?

            Naveen_ksN 1 Reply Last reply
            0
            • Ni.SumiN Ni.Sumi

              @Naveen_ks

              Do you want to limit the visible items under the main menu? like only 4 at a time , not more than that?

              Naveen_ksN Offline
              Naveen_ksN Offline
              Naveen_ks
              wrote on last edited by Naveen_ks
              #6

              @Ni.Sumi
              Yes I want to limit the items for 4.

              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