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. qtreewidget with column qdateedit
Forum Updated to NodeBB v4.3 + New Features

qtreewidget with column qdateedit

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

    hi
    i need help with a qtreewidget, where i have a column Period that is a qwidget with a qdateedit that pop up a calendar, i get all this data from another class, and populate in this qwidget, i need something when i change the data on qdate to populate the member of my class again, the problem i dont know how to make in my slot Selecteddata slot to get my qwidget (qdateedit) from my qtree to work with it, the problem is that i populate my column in a for and for every row i make a qdate

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Using model + treeview works better than using treewidget for such cases.

      Anyway,
      You can use signal and slots.

      so Tree, you define a new signal
      PeriodChanged( string or what type u need)
      then when you create the qdateedit, you hook its changed signal up to a slot
      in side treewidget. (or direct to PeriodChanged if signatur matches)

      Then from "other class" , you connect to the PeriodChanged signal from the treewidget and it can then update the data its own slot.

      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