Pretty basic question but I couldn’t find a solution through google. In QT when a graphics item is selected, there’s a border around it. I was wondering how I can set this border to be invisible. Thanks.
Share
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.
There’s no interface to disable the drawing of the selection border for the build-in QGraphicsItems. The only way I can think of is derive your own items from the build-in ones and override the
paint()function:It’s not tested but basically you make a copy of option passed and clear the selection state flag before passing it to the actual
paint().