Hello, I have an exact copy of the QT-integration tutorial source code and I'm trying to run it.
The application starts and all, but I cannot see the SFML-widget, and this is the output:
Starting: /home/ftp4/cpp/projects/qsnake/build/qsnake
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x5c0000a
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x5c0000a
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 8 (X_MapWindow)
Resource id: 0x5c0000a
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x5c0000a
X Error: RenderBadPicture (invalid Picture parameter) 175
Extension: 153 (RENDER)
Minor opcode: 7 (RenderFreePicture)
Resource id: 0x15a
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 4 (X_DestroyWindow)
Resource id: 0x5c0000a
*** Exited normally ***
And if I try to run a simple non-qt SFML app such as
#include <iostream>
#include <SFML/Graphics.hpp>
int main(int argc, char **argv) {
sf::VideoMode Vid = sf::VideoMode::GetDesktopMode();
Vid.Height = 600;
Vid.Width = 400;
sf::RenderWindow App(Vid,"Test", sf::Style::Close);
sf::Event Event;
while(App.IsOpened())
{
while(App.GetEvent(Event)) {
if(Event.Type == sf::Event::KeyPressed && Event.Key.Code == sf::Key::Escape)
App.Close();
}
App.Clear(sf::Color::Black);
}
return 0;
}
it just freezes (not really freezes, it takes all CPU power there is in the universe).
Any ideas what might be wrong?
Graphics drivers are up to date and all necessary libraries for X is installed.
Same problem in SFML 1.6 and SFML 2