1
Window / Qt5 window and SFML2
« on: May 22, 2013, 08:30:22 am »
Hi all!
I'm trying to create a Qt application with an SFML canvas as described in the 1.6 tutorial, and it works great under Linux.
However, when compiling on Windows, I get this:
Qt5's winId() function returns what in the Qt world is refered to as quintptr (See: qwindowdefs.h)
Has anyone found a solution to this? Is there just a cast missing?
Thanks in advance
I'm trying to create a Qt application with an SFML canvas as described in the 1.6 tutorial, and it works great under Linux.
However, when compiling on Windows, I get this:
Quote
Code:
sf::RenderWindow::create(winId());
Compile routput:
'void sf::Window::create(sf::WindowHandle,const sf::ContextSettings &)' : cannot convert parameter 1 from 'WId' to 'sf::WindowHandle'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Qt5's winId() function returns what in the Qt world is refered to as quintptr (See: qwindowdefs.h)
Has anyone found a solution to this? Is there just a cast missing?
Thanks in advance
