0

I have a Viewer contained inside a QFrame like this:

enter image description here

The white area is Viewer and grey area is QFrame.

What is want to have is another QscrollArea with the Viewer layed out vertically with a vertical splitter like this:

enter image description here

But even after selecting both QScrollArea and Viewer and then clicking the layout vertically in splitter button. The splitter does not appear? Any idea as to how to achieve this?

Sumeet
  • 8,086
  • 3
  • 25
  • 45

2 Answers2

1

This is the answer you're looking for: https://stackoverflow.com/a/28313475/1839954

On a not layed out area, add the children widgets, select them with CTRL key pressed and then lay them out using a vertical splitter (there's a button on the layout toolbar above the form preview)

enter image description here

Community
  • 1
  • 1
Massimo Callegari
  • 2,099
  • 1
  • 26
  • 39
0

Assuming that by "viewer" you mean a QListView for example, i had no problem to define this using Qt Designer. You should select the QFrame and the QScrollArea from the object inspector and then click on the vertical splitter layout inside Qt Designer.

Here is the result :

UI

Here is my object inspector :

object inspector

Hope this helps.

Fryz
  • 2,119
  • 2
  • 25
  • 45