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. Using the same container widget in multiple windows.
Forum Updated to NodeBB v4.3 + New Features

Using the same container widget in multiple windows.

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 1.2k 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.
  • K Offline
    K Offline
    kpks
    wrote on 16 Jan 2014, 08:24 last edited by
    #1

    My application has 3 windows; Each window has 3 container widgets, the bottom container widget is the same for all the three - a log and a quit button.

    Currently I create a new log panel in each window. But, would it be possible to carry the widget from one window to the other?

    I have used qt creator 2.8.1 to create the actual screens.

    Thanks.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 16 Jan 2014, 08:56 last edited by
      #2

      no it can only be visible in 1 window at the time

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jeroentjehome
        wrote on 16 Jan 2014, 12:30 last edited by
        #3

        Maybe make three View Widgets and a single 'Model' working class, just like the Model/View classes.

        Greetz, Jeroen

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Jan 2014, 12:37 last edited by
          #4

          Hi,

          When you say three "windows" do you mean separated floating widgets ? Or do you have three QWidget that you are using in one main widget ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kpks
            wrote on 16 Jan 2014, 14:33 last edited by
            #5

            I have 3 windows with 3 widgets each; 3 X 3totally 9 widgets.

            Is it possible to destroy a widget on a window and rplace with another widget?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Jan 2014, 14:39 last edited by
              #6

              Then you should follow Jeroentje@home's advice, it's the best solution

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              16 Jan 2014, 08:24

              • Login

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