I’m slowly getting my head in to the world of Qt, but one thing I’m struggling with is getting the overlay spinner working in a simple app.
Could someone show me how to add the overlay widget spinner to the starter-app?
From what I’ve discovered, I imagine I need to start my “slow” method in a separate thread to the main thread otherwise the overlay widget won’t show.
Rather than rolling my own threading, I took a look at using the shotgun-utils task_manager, but I have a feeling it’s too specific to SG methods to be used for my arbitrary method, is that true? or is there a simple example I could use to roll my own async function?
would you lovely people at SG be able to flesh out a really simple fork of the starter-app showing how to implement the overlay spinner whilst an arbitrary slow function is being run? (the method could just be a wait() and then return a value and then update a QtLabel with the dummy value).
I think it would be great to have an example of how to make use of arbitrary async methods using the shotgun-utils framework.
Thanks in advance!
PS : I don’t want an example showing a simple SG query using the framework… can probably figure that out, I’m interested in how we can roll our own async methods.