I need to know what was the mouse button clicked when a QListView::clicked signal is emitted.
How can I know the button.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are not interested in subclassing, you can also create an event filter class and install that filter onto the object in which you want to listen to (in this case, the
QListView).For more information look at
QObject::installEventFilter().