Akumax
22-10-2009 23:10:13
Hi,
I'm new to QuickGUI, I only discovered it a few days ago. It seems easy to use and to integrate but I'm running into some problems while I'm following the tutorials.
First, in this tutorial : Beginner Tutorial 2, it's said that GUIManager creates a default sheet ready to use. But when I'm calling the "getActiveSheet" function and try to use the sheet, my program crashes.
Second, I create a sheet with this code :
Then I create a button with this code :
Then my button is well placed at 0,0 but it's seems the scale is wrong because I can click out of the button. And, another weird thing, another button (the same as mine but reversed) is appearing when I click on the button, as in this picture.

You can see that I click out of the button but it still work and another button is appearing at the bottom of the screen.
I'm using QuickGUI 9.10 (I tried with the 9.09 version too) and Ogre 1.6 (svn version, but I tried with the 1.6.4 version too).
Any ideas ? Any more information I should give ?
Thank you
I'm new to QuickGUI, I only discovered it a few days ago. It seems easy to use and to integrate but I'm running into some problems while I'm following the tutorials.
First, in this tutorial : Beginner Tutorial 2, it's said that GUIManager creates a default sheet ready to use. But when I'm calling the "getActiveSheet" function and try to use the sheet, my program crashes.
Second, I create a sheet with this code :
QuickGUI::SheetDesc* sd = QuickGUI::DescManager::getSingleton().getDefaultSheetDesc();
sd->resetToDefault();
sd->widget_dimensions.size = QuickGUI::Size(mRenderWindow->getWidth(), mRenderWindow->getHeight());
QuickGUI::Sheet* defaultSheet = QuickGUI::SheetManager::getSingleton().createSheet(sd);
mGUIManager->setActiveSheet(defaultSheet);
Then I create a button with this code :
QuickGUI::ButtonDesc* bd = QuickGUI::DescManager::getSingleton().getDefaultButtonDesc();
bd->resetToDefault();
bd->widget_name = "MyButton";
bd->widget_dimensions.position = QuickGUI::Point(0,0);
bd->widget_dimensions.size = QuickGUI::Size(100,25);
QuickGUI::Button* myButton = defaultSheet->createButton(bd);
Then my button is well placed at 0,0 but it's seems the scale is wrong because I can click out of the button. And, another weird thing, another button (the same as mine but reversed) is appearing when I click on the button, as in this picture.
You can see that I click out of the button but it still work and another button is appearing at the bottom of the screen.
I'm using QuickGUI 9.10 (I tried with the 9.09 version too) and Ogre 1.6 (svn version, but I tried with the 1.6.4 version too).
Any ideas ? Any more information I should give ?
Thank you