문제

I'm writing a day schedule and got some troubles: I'm drawing a rectangle on the scheme (rect = event) and I need to put label directly inside of the rectangle. Are there any ways to do that?

P.S. At the moment the scheme is a QWidget and I use QPainter to draw rectangles

도움이 되었습니까?

해결책

knowing the position of the rectangle in QPainter, if you just want to write in it, you can use the QPainter::drawText function.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top