In that case you can show separate custom widget only once and then only update the displayed value, something like
void Class::onValueChanged(int value){
if (this->_infoWidget->isVisible() == false){
this->_infoWidget->show();
}
this->_infoWidget->displayValue(value);
}
void Class::onValueChanged(int value){
if (this->_infoWidget->isVisible() == false){
this->_infoWidget->show();
}
this->_infoWidget->displayValue(value);
}
To copy to clipboard, switch view to plain text mode
I think you get the idea.
Another way is to have a separate part of the main layout designated for the information notifications.
Btw. maybe you could use separate slots for "connected / disconnected" and "value changed" notifications ? From what I understand, there is no way to change the slider value when the hardware is disconnected, is that right ?
Bookmarks