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. Signals from QTableWidget
Forum Update on Monday, May 27th 2025

Signals from QTableWidget

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

    Hi there,

    I prepared object of QTableWidget class with QTimerEdit in its cells like that

     for(int i = 0; i < ROW_NUMBER; ++i)
            pressureTimeTable_->setCellWidget(i, 0, new QTimeEdit);
    

    the view is nice but when I enter new time value no signal is generated.
    I tried to connect to cellChanged or itemChanged signal.
    Is there any posibility to call any slot after change on thet cell?

    Thanks a lot in advance

    JonBJ 1 Reply Last reply
    0
    • M Milosz

      Hi there,

      I prepared object of QTableWidget class with QTimerEdit in its cells like that

       for(int i = 0; i < ROW_NUMBER; ++i)
              pressureTimeTable_->setCellWidget(i, 0, new QTimeEdit);
      

      the view is nice but when I enter new time value no signal is generated.
      I tried to connect to cellChanged or itemChanged signal.
      Is there any posibility to call any slot after change on thet cell?

      Thanks a lot in advance

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Milosz
      Neither the cell nor the item is "changing" when user enters a time into the QTimeEdit. You have to attach a slot to that QTimeEdit's timeChanged() signal, just like you would if it did not happen to be placed as a cell widget.

      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