or even us QCoreApplication::sendEvent() to push an event through the normal event processing chain.
Using send event did allow me to do what I intended but nothing appears to be happening. Here's my class as of right now:

Qt Code:
  1. CheckBoxTest::CheckBoxTest(QString text, QWidget *parent) :
  2. QWidget(parent)
  3. {
  4. this->setMouseTracking(true);
  5. label = new QLabel(text);
  6. checkBox = new QCheckBox;
  7. QHBoxLayout* layout = new QHBoxLayout;
  8. layout->addWidget(label);
  9. layout->addWidget(checkBox);
  10. this->setLayout(layout);
  11. }
  12.  
  13. void CheckBoxTest::mouseMoveEvent(QMouseEvent *event){
  14. if(label->contentsRect().contains(event->pos())){
  15. QMouseEvent* newEvent = new QMouseEvent(QEvent::MouseMove, checkBox->mapFromGlobal(checkBox->pos()), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
  16. QCoreApplication::sendEvent(checkBox, newEvent);
  17. }else{
  18. event->ignore();
  19. }
  20. }
To copy to clipboard, switch view to plain text mode 

Mouse events are passed on to checkBox when not within the label. When within the label the newEvent is created with a mouse position of checkBox's position and I use sendEvent to send it to checkBox which should trigger a hover state whenever the mouse is in the contents of the label. Any idea why nothing seems to be happening?