Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Sequenza di widget
QtWS25 Last Chance

Sequenza di widget

Scheduled Pinned Locked Moved Italian
3 Posts 3 Posters 1.5k Views
  • 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.
  • W Offline
    W Offline
    warcomeb
    wrote on last edited by
    #1

    Ciao a tutti,
    dovrei realizzare un'applicazione embedded e per farlo vorrei creare una sequenza di pannelli da mostrare e l'utente passa da uno all'altro tramite dei pulsanti. Sinceramente lato desktop non mi è mai capitata questa esigenza ed ora sinceramente non so proprio come fare. Avete qualche consiglio? Qualche via che potrebbe essere meglio di un'altra?

    Spero di essermi spiegato bene

    Grazie
    Marco

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted529
      wrote on last edited by
      #2

      Ciao!

      Direi che la soluzione ideale sia usare uno stack di widget tramite "QStackedWidget":http://doc-snapshot.qt-project.org/qt5-5.4/qstackedwidget.html

      Direttamente dalla documentazione:

      bq. The widget() function returns the widget at a given index position. The index of the widget that is shown on screen is given by currentIndex() and can be changed using setCurrentIndex(). In a similar manner, the currently shown widget can be retrieved using the currentWidget() function, and altered using the setCurrentWidget() function.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by mcosta
        #3

        Il termine sequenza mi fa pensare all'utilizzo di QWizard. E' molto utile se devi mostrare i pannelli in un ordine prestabilito o se comunque l'utente deve impostare dei valori in un pannello prima di passare ai successivi.

        Nel caso in cui si tratta di una navigazione tra pannelli QStackedWidget fa al caso tuo

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        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