Hello,
I’m trying to build a window which contain different parts and I’m almost done but there’s a last step that I’m having difficulties with.
A image will be faster to describe what I want :
Ling to the image [img841.imageshack.us]
The white area is handled via QGraphicsScene/QGraphicsView to display a big diagram. Only part of it is displayed and user navigate with scroll bars. The red part (QSlider) has a fixed width. All of this works as describe using Qt example code border layout [qt-project.org]
My problem : the red area contains a long list of text, the same height as the diagram shown in white area and only part of it is displayed. I’ve succeed to send wheel events from white area to the red one and inversely, but I can’t make the content displayed in red area to be changed. I would like to display parts that are hidden when user scroll and no matter which function (setValue(), setSliderPosition(), scroll()…) I use, nothing changes. The only result that I get is when using move(). Then the red area start recovering the green one and that’s obviously not what I want.
If anyone know how to fix this, I would really appreciate.
Please note, that despite the image was made with designer, all of the window is constructed with code, so please don’t help me inviting me to use it.
Thaks for reading.
↧