Alen
Alen

Reputation: 1788

Change geometry of QRegion

I implemented autohide feature using QRegion and mouseMove event. Now I have another problem. I need to change geometry of QRegion during runtime but I can't find any suitable command. Can you help me with this.

Upvotes: 2

Views: 181

Answers (1)

Nikos C.
Nikos C.

Reputation: 51832

Just assign it another QRegion. Example:

QRegion myRegion(/* ... */);

// Change myRegion
myRegion = QRegion(/* ... */);

Upvotes: 2

Related Questions