Creating & deleting widgets dynamically

  • How to create multiple widgets dynamically & delete dynamically, need to update in scroll area widget. Need to happen without UI hang.
    . Tried multiple cases, but UI hangs or app crashes.
    . Cannot use worker thread for Widget object creation and delete.

  • Lifetime Qt Champion

    @yuvaram You should show your code, else nobody can tell what is wrong.
    Also you should never create/delete/manipulate UI classes in other threads than GUI thread! This is not supported and will cause problems.

Log in to reply