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. [Qt5.2] Linking treewidget to tablewidget, need advice on events to use
Forum Updated to NodeBB v4.3 + New Features

[Qt5.2] Linking treewidget to tablewidget, need advice on events to use

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

    Hi,

    I'm trying to link signal and slot from a treewidget to tablewidget. I have a list of items in my treewidget let's say: Name, Address, Work. And I want to link the selection from treewidget to tablewidget. For example if i select Name from treewidget, the tablewidget will display columns such as FirstName, LastName. And if i select Address from treewidget, the tablewidget will populate StreetName, BlockNo, Postcode etc on the columns.

    When I tried to configure the connection from tree to table, let's say ItemClicked on treewidget, I did not see any event on tablewidget I could select to populate the columns I want.

    Can anyone advise on this?
    Thanks.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Well as i know you can't do this just by signals and slots, you need write some extra code. Does your treewidget contains all information you need?

      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