I have a widget and a graphics view in the central widget of my application. The widget has four push buttons in it. I added the both in horizontal layout using the following code:

```
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(ui->entityWidget);
layout->addWidget(ui->graphicsView);
ui->centralWidget->setLayout(layout);

```

I have set the size policy of the widget to be minimum and that of the graphics view to preferred. When I run the app, the widget is displayed appropriately in the top left corner but the graphics view's top left corner is in the middle of the central widget, which is not required. It should be right next to the widget. 

How do I modify the size policy for correct placement of the graphics view in the main window?