I need to handle with 30 QLabels and QSpinBox stored in QGridLayout. I've created them and put in vector, after that I've placed them in proper grid cells.
Now - when user clicked inside QSpinBox (in edit field) I'm sending info to format QLabel connected with that spinbox. But
if (event
->type
() == QEvent::MouseButtonPress || event
->type
() == QEvent::FocusIn )
if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::FocusIn )
To copy to clipboard, switch view to plain text mode
is fulfilled every time cursor stays inside, not only WHEN user placed him there FIRST time.
event
->type
() == QEvent::MouseButtonPress
event->type() == QEvent::MouseButtonPress
To copy to clipboard, switch view to plain text mode
is true only when user clicked on spinbox arrows.
Am I missing some events?
Bookmarks