I am trying to display wait cursor (spinning rainbow wheel) by using "QDDisplayWaitCursor" function, but I get a warning that "QDDisplayWaitCursor" is deprecated, howeve开发者_高级运维r everything runs fine but I would like to replace it with proper alternative of this function but I didnt find any google result and also in apple docs.
The best thing to do is to use something else1:
The spinning wait cursor is displayed automatically by the window server when an application cannot handle all of the events it receives. If an application does not respond for about 2 to 4 seconds, the spinning wait cursor appears. You should try to avoid situations in your application in which the spinning wait cursor will be displayed.
Instead use progress indicators, in a window- or application-modal way if neccessary.
精彩评论