Question

I'm using QRubberband and it's working fine inside of my program, but I want to get the coordinates outside of my program. In other words, using it outside of my program while it's running!

To be more clear, I'm using a Qt class called QRubberband which helps you select a rectangle or line "clicking and then drag." Everything is working when I use it inside of my project space, but I can't use it outside - for example when I activate it I should be able to select from maybe this site, or anywhere in the screen not just my program.

Was it helpful?

Solution

The QRubberBand man page says:

If you pass a parent to QRubberBand's constructor, the rubber band will display only inside its parent, but stays on top of other child widgets. If no parent is passed, QRubberBand will act as a top-level widget.

So at the risk of asking the obvious... are you passing in NULL as the second argument to the QRubberBand constructor?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top