Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML QT Widget Problems  (Read 1116 times)

0 Members and 1 Guest are viewing this topic.

kpax00

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML QT Widget Problems
« on: April 15, 2014, 01:07:30 am »
I used the general code from this tutorial (http://becomingindiedev.blogspot.com/2013/10/qt-5-and-sfml-20-integration.html) with some minor modifications to get it work. I've been using the Qt Designer in Qt creator to edit the GUI and to place a "mycanvas" I've been placing a QWidget on the window and promoting it to a "mycanvas". This somewhat works but I have one major problem as shown in this picture:

http://imgur.com/VI3ahQy

The renderwindow cannot be resized. It's stuck at the bottom left of the widget. It's size it set to the minimum allowed size of the widget. Setsize of the renderwindow does nothing. Resizing the window changes the widget size but the size of the renderwindow always returns the same. The renderwindow location is always is the top left of the widget, not the top left of our displyed image. It's not the viewport or the view, I've played around with both and no results.

Any idea what may be causing it?

MadMartin

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: SFML QT Widget Problems
« Reply #1 on: April 15, 2014, 08:46:32 am »
As always, provide a minimal and complete example of your problem: http://stackoverflow.com/help/mcve
There is no point in guessing what possibly could go wrong with your code without seeing it.

 

anything