alitoh
6th April 2011, 20:29
Hello,
I'm trying to follow the chip demo as a guideline on how to work with the Graphics Scene / View.
My problem now is that I can't seem to embed the view into a dlg window. That is, I CAN instantiate the view object, I CAN instantiate the SCENE object and I'm trying to follow most of the CHIP demo on most of the code. But I just can't make it show in my dialog window.
If I use the view->show(); line it appears as A NEW WINDOW (which kinda makes sense), but I just can't seem to figure how how to make it be embebed INTO the dialog.
Also, I seem to have a problem with either the scene, the view or both being of a massive size, and I don't know how to resize them.
I'm attaching a screenshot of how it looks, so you know why it's wrong.
I'm trying to follow the chip demo as a guideline on how to work with the Graphics Scene / View.
My problem now is that I can't seem to embed the view into a dlg window. That is, I CAN instantiate the view object, I CAN instantiate the SCENE object and I'm trying to follow most of the CHIP demo on most of the code. But I just can't make it show in my dialog window.
If I use the view->show(); line it appears as A NEW WINDOW (which kinda makes sense), but I just can't seem to figure how how to make it be embebed INTO the dialog.
Also, I seem to have a problem with either the scene, the view or both being of a massive size, and I don't know how to resize them.
I'm attaching a screenshot of how it looks, so you know why it's wrong.