Hi, I'm going to integrate SFML in Qt, I'm going to write a level editor.
I've followed SFML's tutorial about Qt and the drawing and everything works fine. But when I resize my window, I'd like my SFML widget to be resized, too.
It IS resized correctly, but everything I draw is scaled up. What is the problem?
I've tried something like this:
void QSFMLCanvas::resizeEvent(QResizeEvent *event)
{
printf("New size: %dx%d\n", event->size().width(), event->size().height());
SetSize(event->size().width(), event->size().height());
}
But that doesn't change anything.
Any ideas?