Hello,

I am trying to create a pop-up window in my Qt application that allows me
to input some data.  The user has to press a button to make the pop-up
window appear.  I want the pop-up window to have an arrow attached to it
that points back to this button, but I am not sure how to create that.  The
screenshot below shows the arrow that I want to create.


Currently, I have a QWidget that has the *Qt::FramelessWindowHint* and
*Qt::Popup* window flags set and shows itself whenever the corresponding
button is pressed.  I have been going down the route of setting the left
margin of the QWidget to some pixel value, and then trying to find a way to
make the margin transparent so that I can draw my arrow in it.  However, I
feel that this may not be the correct approach to this problem.

Is there a better way of doing this?

Thanks,
Joey Kleingers
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to