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. how to refer same table widget to different pages of tabwidget
Qt 6.11 is out! See what's new in the release blog

how to refer same table widget to different pages of tabwidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 625 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.
  • GodOfCodeG Offline
    GodOfCodeG Offline
    GodOfCode
    wrote on last edited by
    #1

    i have table widget contain group infos on page 1 of tabwidget and i want to refer it to the others pages without copy it?

    jsulmJ artwawA 2 Replies Last reply
    0
    • GodOfCodeG GodOfCode

      i have table widget contain group infos on page 1 of tabwidget and i want to refer it to the others pages without copy it?

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

      @GodOfCode What do you mean by "refer"? You can't show same widget instance at several places. You have to create different instances of the widget for each place where you want to show it.

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

      1 Reply Last reply
      3
      • GodOfCodeG GodOfCode

        i have table widget contain group infos on page 1 of tabwidget and i want to refer it to the others pages without copy it?

        artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #3

        @GodOfCode One way of achieving that would be to change table widget to table view, put the data in the model connected to the view. Then you can have as many views as you like and feed all of them with a single model and a single data set.

        For more information please re-read.

        Kind Regards,
        Artur

        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