Punch a hole thro QT Graphics

I have a QT Application with Video running and QT Graphics is on top of it. I need to punch a hole so that all graphics layer in a rectangle become transparent and Video becomes visible.

I checked setMask, but with this API, the hole rectangle becomes white. This is the snippet -

QRegion r1(0, 0, 1280, 800, QRegion::Rectangle);
QRegion r2(0, 150, 600, 480, QRegion::Rectangle);
QRegion visibleReg =  r1.subtracted (r2);

Any help would be appreciated. I am using QT5.


Need Your Help

How to register for an NSNotification from a UILocalNotification?

iphone ios nsnotification uilocalnotification

I have a tabbar application and let's say that I want to switch to the second tab and popup an alert at 12:00, even if my application is not running.

bindService not binding to service

android service

So I have a bound service set up, but every time I call bindService() it never calls the onBind() method of my service and onServiceConnected() is never called. There is no error I can see, nothing...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.