Results 1 to 4 of 4

Thread: Seeking suggestions for a grid-based ASCII character layout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Seeking suggestions for a grid-based ASCII character layout

    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.
    Last edited by Quasimojo; 1st April 2012 at 21:15.

Similar Threads

  1. Replies: 14
    Last Post: 7th December 2011, 03:57
  2. Replies: 8
    Last Post: 14th April 2010, 05:54
  3. Suggestions for checkbox form layout
    By MrGarbage in forum Qt Tools
    Replies: 1
    Last Post: 25th July 2007, 23:07
  4. Suggestions Anyone:QTableView Grid
    By locus in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2007, 08:01
  5. Grid layout
    By nupul in forum Qt Programming
    Replies: 7
    Last Post: 21st April 2006, 21:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.