There is an elegant solution. Just make sure that movement property is set to Static and isWrapping property is set to false. If you insert a QListWidget into Designer, its default properties are set correctly and the whole width of the list is highlighted when selecting.
Bookmarks