I am trying to lay out a Qt form as the UI for an ASCII character-based RPG. The UI elements will be arranged around a display region on the form. I would like a grid (perhaps 64x64) where each grid cell could display either an ASCII character or a sprite of some sort. I need the contents of each cell to fill the entire cell (no margins or padding). I would like the grid layout and its contents to expand/shrink as the form is re-sized.
My first thought was to use a grid layout widget and populate it with a 64x64 grid of label controls. However, I can't seem to get simple text characters to scale properly - expanding to the edges of the cell, while not causing the size of the grid layout to change.
I would appreciate suggestions on the best approach to accomplish this. Perhaps a grid layout widget isn't the best way to go?
Thanks.
Bookmarks