Thread: mbarcode
View Single Post
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#588
Originally Posted by dragly View Post
My thoughts on user feedback has been to use the ResultsWindow list. By changing the text/icon, the plugin can show the number of results, an error text etc. That is the reason why there is a timer in the ResultsWindow.
Of course the timer is just to allow slow plugins to decide whether they can handle the barcode payload and be added to the list, it's the paint event which asks each plugin for its icon/text/etc., so what one needs to do is to have the plugin alter its icon/text data to whatever is appropriate and then ask for the correct row of the QTableView to be re-drawn to update that information (e.g. calling update() on the QTableView or perhaps QTableViewItem or somesuch)
 

The Following User Says Thank You to lardman For This Useful Post: