Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Purpose of the property opacity

2 posters

Go down  Message [Page 1 of 1]

1Purpose of the property opacity Empty Purpose of the property opacity Sat Jan 29, 2022 12:38 am

feri



Purpose of the property opacity?
values 0 or 1 invisible or visible
it's good for something or you can delete it from the shape component.
Greetings

2Purpose of the property opacity Empty Re: Purpose of the property opacity Sat Jan 29, 2022 2:54 am

arcachofo

arcachofo

Purpose of the property opacity?
Set the opacity: values from 0=0% to 1=100%.
For example 0.5 will set opacity to 50%.

3Purpose of the property opacity Empty Re: Purpose of the property opacity Sat Jan 29, 2022 8:26 pm

feri



It is possible to add a frame as in the image, which does not intercept mouse events inside.
With a rectangle, if I use the mouse inside, I select the rectangle menu and if I try to select objects by dragging the rectangle moves.
Greetings

Purpose of the property opacity Mardui10

4Purpose of the property opacity Empty Re: Purpose of the property opacity Sun Jan 30, 2022 1:26 am

feri



Found it!

Code:

    this->setFlag(QGraphicsItem::ItemIsSelectable, false);
    setAcceptedMouseButtons(Qt::NoButton);

Greetings

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum