Making QPushButtons span multiple columns in QGridLayout
-
@Gojir4 I want something like this:
wrote on 15 May 2018, 13:45 last edited by Gojir4@Qtstarter121 What about that ? This is what I tried to explain in one of my previous post.
Sorry for quality of the gif, I'm not an expert in video conversion :)
-
@Qtstarter121 What about that ? This is what I tried to explain in one of my previous post.
Sorry for quality of the gif, I'm not an expert in video conversion :)
@Gojir4
Cool. I didn't know it would just allow it!
Ps. if u need gif anims, this just works
http://www.screentogif.com/ -
@Gojir4
Cool. I didn't know it would just allow it!
Ps. if u need gif anims, this just works
http://www.screentogif.com/ -
@Qtstarter121
Hi
You can use one of the red layouts from Layout section to the left. ( not right click)
wrote on 15 May 2018, 15:12 last edited by@mrjj I did that, instead of selecting all buttons and right click then layout in grid, I instead dragged a Grid Layout from the left panel and tried inputting buttons one by one into the layout, but once I finish the first row, the layout is fixed to define 3 columns, so I still can't only have 2 columns in the last row... there will always be that one column to the right that is empty.
shaded region represents an empty cell that always exists no matter how I drag my buttons around.
-
@mrjj I did that, instead of selecting all buttons and right click then layout in grid, I instead dragged a Grid Layout from the left panel and tried inputting buttons one by one into the layout, but once I finish the first row, the layout is fixed to define 3 columns, so I still can't only have 2 columns in the last row... there will always be that one column to the right that is empty.
shaded region represents an empty cell that always exists no matter how I drag my buttons around.
@Qtstarter121
I i used both a GridLayout and a red layout i put as last row.
But it seems @Gojir4 made it do it without extra layout.
we just need him to tell what he clicks after selecting them all
as video is faster than my eye :) -
wrote on 15 May 2018, 17:10 last edited by
I'm confused as to what a "red layout" is. Isn't selecting a Grid Layout from the left panel, and selecting all buttons and right click-> Layout > Layout in Grid the same thing?
-
@Qtstarter121
I i used both a GridLayout and a red layout i put as last row.
But it seems @Gojir4 made it do it without extra layout.
we just need him to tell what he clicks after selecting them all
as video is faster than my eye :)wrote on 15 May 2018, 19:35 last edited by@mrjj @Qtstarter121 I'm clicking on "Layout in a grid" :)
-
@Qtstarter121 What about that ? This is what I tried to explain in one of my previous post.
Sorry for quality of the gif, I'm not an expert in video conversion :)
wrote on 11 Jun 2018, 18:23 last edited by@Gojir4 I know this is a pretty late reply but I just wanted to say that this actually worked out for me. Thanks so much! The GIF animation was very helpful.
-
@Gojir4 I know this is a pretty late reply but I just wanted to say that this actually worked out for me. Thanks so much! The GIF animation was very helpful.
wrote on 12 Jun 2018, 09:14 last edited by@Qtstarter121 Glad it helped !
Can you please set the thread as "Solved"
Thanks -
wrote on 4 Oct 2019, 13:41 last edited by
Sorry, I know it's like over a year later, but I have finally marked it as solved. Thanks for the help.