Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can I disable the listWidget for 1second and enable it again?
widget->setEnabled(false); QTimer::singleShot(1000,widget,std::bind(&QWidget::setEnabled,widget,true));
@VRonin That looks right. But I got an error "no matching function for call to 'bind'".
Fixed my code above, I was missing an argument
#include <functional>
@Kinesis I'm to lazy to google my way to the correct include for std::bind, so my suggestion lambda your way through it
widget->setEnabled(false); QTimer::singleShot(1000,widget,[widget]{widget->setEnabled(true);});
@VRonin I did #include <functional> I am using Qt>=5.11.0.
@J.Hilk It works ! THANKS :-)