OK, what I am doing is:
mainwin = SoQt::init("kkk");
myRenderArea = new SoQtRenderArea(mainwin);
viewport = myRenderArea->getViewportRegion();
//gets the viewport from the main
SbViewportRegion harbour = ((View *) userData)->getViewport();
SbVec2s windowsize = harbour.getViewportSizePixels();
It returns 400x400.
I hope this code helps solving the problem...
Tanks in advance :-)
> Hi again,
> I tried to get the windowsize from my SbViewportRegion but the window=
Quote:> is said to be 400 x 400 at a ratio of 1 - my mouse-cursor coordinates=
Quote:> me, that the window is at least 700 x 470. How can I get the REAL siz=
> the window?
Where did you get the SbViewportRegion from ??
From Camera of a specific viewer or viewer itself??
Did you ever tell the viewer of your SbViewportRegion and/or the camera=
Are you sure you measured the renderarea and not the whole Viewer windo=
including the decorations icn buttons and thumb wheels ???
Tell a bit more about your SbViewport region and where you got it from =
Show the relevant parts of your code ....
please otherwhise you hardly will get any help mostly beeing as general=
and thumb like this one