opt.rect.height(), opt.rect.width(), opt.rect.height()
will always return the same numbers.. u need opt.rect.x() opt.rect.y()
opt.rect.height(), opt.rect.width(), opt.rect.height()
will always return the same numbers.. u need opt.rect.x() opt.rect.y()
thanks!
I used some functions of QRect:
Qt Code:
painter->drawLine(opt.rect.bottomLeft(), opt.rect.bottomRight());To copy to clipboard, switch view to plain text mode
Using Qt 4.7
Developping on Win 7 and XP
Using Qt Creator, Eclipse and Visual Studio
Target Platforms Win, Linux and soon OS X
Bookmarks