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. (SOLVED) QStackedWidgets and navigations when there are multiple levels of objects.
Forum Updated to NodeBB v4.3 + New Features

(SOLVED) QStackedWidgets and navigations when there are multiple levels of objects.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 677 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.
  • S Offline
    S Offline
    ShanDeconinck
    wrote on last edited by
    #1

    Dear Qt-Magicians

    I'm creating a Gui, using QStackedWidgets to manage the widgets.

    There are 3 levels:

    • QMainWindow
    • QWidgets representing overviews: Clients, Products and Invoices
    • QWidgets representing specific identity: Client, Product and Invoice (created by the resp. overview)

    But... there's something I want to do.

    I have a toolbar with 3 fixed actions: "Clients", "Products" and "Invoices". Connected to the overview-widgets.
    then there's a separator.

    Now, i'd like to add actions to the toolbar when a specific identity has been created. So the user can navigate between the widgets.
    And as an extra, each specific identity representing a specific id, can only be opened once.

    How to start with this?

    • Can i pass a pointer to the toolbar?
    • Can i keep creating actions?
    • How do I delete it when the specific identity is closed?
    • Is this 'Clean code', or can you suggest better techniques?

    Something tells me this is not a clean way to set up a GUI.
    An MDI however also sets me up with passing a pointer, and when one is maximized there's also no clear overview of what is opened.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      ShanDeconinck
      wrote on last edited by
      #2

      I've decided to work with QTabWidgets. This question can be ignored

      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