The linked question on Stack Overflow by user 4rigener starts with the sentence:
I want to show image when hover on button.
That sentence is grammatically incorrect, although a fluent speaker should be able to understand it. The same meaning could be conveyed more correctly by either of these sentences:
- I want to show an image when hovering on a button using pyqt5.
- I want to show an image when the user hovers on a button using pyqt5.
The second is in my view slightly better, because it makes explicit who does the hovering, but any programmer would understand this fully from the first version. Several other variations would also be possible.
Note that in addition to correcting the use of "hover", I added missing articles on "image" and "button". Nouns used in this way require an article to be grammatically correct, although the omission of such an article often leaves the sentence understandable, but not natural. Note also that my suggestions make clear the relation of "pyqt5" to the rest of the sentence.
By the way, such a text posted to one of the Stack Exchange sites is more usually called "a post" or more specifically "a question", not "an article". This is just a matter of local convention. On Wikipedia, for example, the term "article" is used for a main entry.