-1

I have just tried a simple thing, in designer I created one push button, inside grid layout. The problem is geometry option got disabled in Property box, and I am not able to change the cordinates. In this situation how should I move the push button from its original place if required?

Can somebody help me to achieve this??

Nikhil Singh
  • 81
  • 10

3 Answers3

1

You can't move or resize a widget inside a layout because its position and its size are managed by the layout. If you want to manage its geometry yourself, do not use a layout.

Fabio
  • 2,522
  • 1
  • 15
  • 25
0

Qt layouts are designed to help you make scalable user interfaces. For this, moving or resizing the button is usually done by the layout using sizeHint() and sizePolicy().

I would suggest reading up on how to use layouts and the use of spacers, as this will impact the location and size of your button.

JefGli
  • 781
  • 3
  • 15
0

Well I found a solution to that Break the Layout, arrange the widgets and then set the layout

Nikhil Singh
  • 81
  • 10