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. can't emit signal in QItemDelegate::setModelData....because this func is const....
Forum Updated to NodeBB v4.3 + New Features

can't emit signal in QItemDelegate::setModelData....because this func is const....

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 819 Views 2 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by opengpu2
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sam
      wrote on last edited by Sam
      #2

      @opengpu2

      When you create the signal in tableEditDelegate make sure its a const e.g

      signals:
      void currentIndex(const QModelIndex &index) const;
      

      then you can connect it in the constructor for e.g

      connect(this, SIGNAL(currentIndex(QModelIndex)),SLOT(setCurrentIndex(QModelIndex)),Qt::DirectConnection);
      
      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