murderv
27-08-2007 12:55:09
hello there,
i just downloaded new version and changed my createGUI() to work with it, but my app is hanging on the setup() call of quickGUI
void Aplication::createGUI()
{
qguiMgr = QuickGUI::GUIManager::getSingletonPtr();
qguiMgr->setup( renderWindow->getWidth(), renderWindow->getHeight() );
QuickGUI::Sheet *qsheet = QuickGUI::GUIManager::getSingleton().getDefaultSheet();
//qsheet->setDefaultFont("acmesa.14");
QuickGUI::Window* qwindow = qsheet->createWindow( QuickGUI::Rect(0.2, 0.9, 0.8, 0.1) );
qwindow->hideTitlebar();
QuickGUI::Button* qbutton = qwindow->createButton( QuickGUI::Rect(0.3, 0.36, 0.05, 0.2) );
qbutton->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_play, this );
//qbutton->getText()->setCaption("Play");
QuickGUI::Button* qbutton2 = qwindow->createButton( QuickGUI::Rect(0.5, 0.36, 0.05, 0.2) );
qbutton2->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_pause, this );
QuickGUI::Button* qbutton3 = qwindow->createButton( QuickGUI::Rect(0.7, 0.36, 0.05, 0.2) );
qbutton3->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_stop, this );
QuickGUI::Button* qbutton4 = qwindow->createButton( QuickGUI::Rect(0.9, 0.36, 0.05, 0.2) );
qbutton4->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_exit, this );
}
i debugged the app and it hangs on the _createDefaultTextures();
just stays there and do nothing. i have to kill the app's process.
what could it be ?
i just downloaded new version and changed my createGUI() to work with it, but my app is hanging on the setup() call of quickGUI
void Aplication::createGUI()
{
qguiMgr = QuickGUI::GUIManager::getSingletonPtr();
qguiMgr->setup( renderWindow->getWidth(), renderWindow->getHeight() );
QuickGUI::Sheet *qsheet = QuickGUI::GUIManager::getSingleton().getDefaultSheet();
//qsheet->setDefaultFont("acmesa.14");
QuickGUI::Window* qwindow = qsheet->createWindow( QuickGUI::Rect(0.2, 0.9, 0.8, 0.1) );
qwindow->hideTitlebar();
QuickGUI::Button* qbutton = qwindow->createButton( QuickGUI::Rect(0.3, 0.36, 0.05, 0.2) );
qbutton->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_play, this );
//qbutton->getText()->setCaption("Play");
QuickGUI::Button* qbutton2 = qwindow->createButton( QuickGUI::Rect(0.5, 0.36, 0.05, 0.2) );
qbutton2->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_pause, this );
QuickGUI::Button* qbutton3 = qwindow->createButton( QuickGUI::Rect(0.7, 0.36, 0.05, 0.2) );
qbutton3->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_stop, this );
QuickGUI::Button* qbutton4 = qwindow->createButton( QuickGUI::Rect(0.9, 0.36, 0.05, 0.2) );
qbutton4->addEventHandler( QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &BatutasApplication::evtHandler_exit, this );
}
i debugged the app and it hangs on the _createDefaultTextures();
just stays there and do nothing. i have to kill the app's process.
what could it be ?