Is it possible to have one scene in two views with two different sizes?
Is it possible to have one scene in two views with two different sizes?
Of course.
I forgot to tell that the same scene should be scaled to fit the view
That doesn't change anything.
So how do i do that?
You set the same scene on both views and call fitInView (or apply whatever else transformation you want) on each of them.
klaviaturist (29th March 2011)
Thanks, I will try that
Added after 16 minutes:
That was a nice solution but it doenn't help me all the way. The pixmaps gets to distorted when scaling from 1280 px to 280 px so I will use me previous code for that part.
One issue remains: I'm having a video player that needs to be displayed at two scenes and controlled from one place. How do i connect two players to one seekslider and play and stop button?
Last edited by klaviaturist; 29th March 2011 at 21:55.
Hmm, I still get the pixmap distorted. Is there any other settings that affects the rendering of the view?
Bookmarks