Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Designer] How to make a standalone widget from some subpart of a QMainWindow ?
Forum Updated to NodeBB v4.3 + New Features

[Designer] How to make a standalone widget from some subpart of a QMainWindow ?

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 952 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.
  • A Offline
    A Offline
    aCOSwt
    wrote on last edited by
    #1
    • I have designed a main window form class => in terms of objects, I get something like :
      @whatever [QMainWindow]
      • centralwidget [QWidget]
        + one_tab [QTabWidget]
        + first_tab [QWidget]
        ... All the objects of the first_tab@
        I now realize that it would be convenient at run time to be able to add new tabs identical to the first one.
        => I would like to design an "autonomous" widget including all the objects of the first tab in order to be able to code something like :
        @one_tab->addTab(autonomous_w, QString());@

    How can I easily achieve this (without of course restarting the design from scratch) ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aCOSwt
      wrote on last edited by
      #2

      OK it seems I sorted this out when discovering how to select a group of objects from the object inspector window then copy + paste in another form.

      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