[QUOTE=ChrisW67;249013]
Quote Originally Posted by homerux View Post
Qt Code:
  1. for(int i=0; i<3; i++)
  2. gridEPG->addWidget(button, x, i%3);
To copy to clipboard, switch view to plain text mode 

You are trying to put the same button object in each of three columns? If that is what you intend then you need to duplicate the button for each column (i.e. three different objects with the same image). If that is not what you intended then remove the for loop and change "i % 3" to " x % 3".

Set the sizeConstraint() of the layout in the scroll area contents widget to QLayout::SetFixedSize and it should adjust the size of the contentsWidget to match the fixed size of the contained tool buttons.
I want put a array of button in 3 columns in a scroll layout, but it not work. Can you help me?