Don't check the status of the listbox in mouse events of another widget. Use signals and slots to connect to changes in the listbox's state (i.e. signals emitted by its QItemSelectionModel) to set a flag in your scene that the listbox has an item selected or not. Then just check this flag in the event. Same goes for updating the status bar - emit a signal from your scene with the new coordinates and connect it to a slot in your widget where you will update the status bar.
Bookmarks