Advanced Qt Programming: Creating Great Software with C++ and Qt 4 by Summerfield Mark

Advanced Qt Programming: Creating Great Software with C++ and Qt 4 by Summerfield Mark

Author:Summerfield, Mark [Summerfield, Mark]
Language: eng
Format: mobi
Publisher: Prentice Hall
Published: 2010-07-10T16:00:00+00:00


When the future watchers were created, each had its finished() signal connected to a corresponding slot, in the case of the selectWatcher to this finishedSelecting() method. So when the filtering process stops—whether because it completed, or was stopped by the user invoking the Stop action—this slot is called.

We begin by disabling the Stop action, since that no longer makes sense, and we hide the progress bar since processing has finished. If the processing was not canceled, we start by clearing any existing selection. Then we iterate over all the surrogate items that were not filtered away (i.e., all those that met the user’s selection criteria), and for each one, we select the corresponding item—whose model index is retrieved from the model—in the view, using the view’s selection model.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.