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. Example of Screen Refreshing with Widget

Example of Screen Refreshing with Widget

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

    Hello All,
    Currently, I need to design an interface where main window widgets get refreshed on the selection of a specific option.
    As an example, if I select file-> new. A set of widgets will appear in the work area. If I choose file-> save as a new set of widgets will appear.
    I went through all the examples of qt creator but could not find a way to implement the specific requirement.

    jsulmJ 1 Reply Last reply
    0
    • KiraK Kira

      Hello All,
      Currently, I need to design an interface where main window widgets get refreshed on the selection of a specific option.
      As an example, if I select file-> new. A set of widgets will appear in the work area. If I choose file-> save as a new set of widgets will appear.
      I went through all the examples of qt creator but could not find a way to implement the specific requirement.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kira You can use https://doc.qt.io/qt-5/qstackedwidget.html
      Or simply create widgets on the fly and show them.
      In this example you can see how to add widgets: https://doc.qt.io/qt-5/qtwidgets-widgets-calculator-example.html#

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      KiraK 1 Reply Last reply
      3
      • jsulmJ jsulm

        @Kira You can use https://doc.qt.io/qt-5/qstackedwidget.html
        Or simply create widgets on the fly and show them.
        In this example you can see how to add widgets: https://doc.qt.io/qt-5/qtwidgets-widgets-calculator-example.html#

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by
        #3

        @jsulm : Thanks for the reply so what you are saying is that i create widgets based on the requirement and enable and disable them base on the requirement

        jsulmJ 1 Reply Last reply
        0
        • KiraK Kira

          @jsulm : Thanks for the reply so what you are saying is that i create widgets based on the requirement and enable and disable them base on the requirement

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kira Not enable/disable, but show/hide.
          But you should check QStackedWidget - with this one you can easily switch between different sets of widgets.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          KiraK 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Kira Not enable/disable, but show/hide.
            But you should check QStackedWidget - with this one you can easily switch between different sets of widgets.

            KiraK Offline
            KiraK Offline
            Kira
            wrote on last edited by
            #5

            @jsulm : Actually i was looking for something like:
            https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.screen?view=netframework-4.8
            It is the below mentioned is similar to the above mentioned component
            https://doc.qt.io/qt-5/qscreen.html

            jsulmJ 1 Reply Last reply
            0
            • KiraK Kira

              @jsulm : Actually i was looking for something like:
              https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.screen?view=netframework-4.8
              It is the below mentioned is similar to the above mentioned component
              https://doc.qt.io/qt-5/qscreen.html

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Kira I'm not sure how QScreen is related to what you asked originally?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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