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: How to display "Display Widget: Graphics View" and "Containers: Widget" alternately?

Solved: How to display "Display Widget: Graphics View" and "Containers: Widget" alternately?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k 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.
  • R Offline
    R Offline
    romeo.rbw
    wrote on last edited by
    #1

    Hi...
    I used a frame in the ui.
    In the frame there are two widgets that comes from Widget Box menu:

    • Graphics View (from Display Widget)

    • Widget (from Containers)

    I need they appear only one, so I put one is in the back of the other (stack), all of them I put in the frame.

    In the beginning I set, "setEnabled(false)" for all of them.
    I assumed that when I "set Enabled(true)" for Widget, it can appear. But it didn't work.
    However if I "set Enabled(true)" for Graphics View, it can appear.

    Please give me some suggestion...
    Thanks.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      romeo.rbw
      wrote on last edited by
      #2

      It solved, I try used setVisible(true) or setVisible(false).

      Thanks

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DerManu
        wrote on last edited by
        #3

        Using a stacked widget (containers section) and placing the graphicsview and the other widget on its pages would've been a possibility, too. It's specifically made for these cases.

        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