Results 1 to 5 of 5

Thread: Qt Drawing 2d grid based maze

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    519
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Drawing 2d grid based maze

    Another way would be to draw the walls as separate lines/rectangles.

    Ginsengelf

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,329
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Drawing 2d grid based maze

    Another way would be to draw the walls as separate lines/rectangles.
    That's pretty much what I meant. Yet another way would be to use the Qt Graphics / View framework and define a new QAbstractGraphicsItem that culd draw each side of a rectangle with a different pen.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    519
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Drawing 2d grid based maze

    Quote Originally Posted by d_stranz View Post
    Yet another way would be to use the Qt Graphics / View framework and define a new QAbstractGraphicsItem that culd draw each side of a rectangle with a different pen.
    That's what I thought you meant

    Ginsengelf

Similar Threads

  1. [Solved] What's wrong with my grid drawing code?
    By enjoysmath in forum Qt Programming
    Replies: 0
    Last Post: 9th August 2015, 23:46
  2. Replies: 3
    Last Post: 2nd April 2012, 09:32
  3. Replies: 14
    Last Post: 7th December 2011, 03:57
  4. Drawing a grid
    By LevelFour in forum Newbie
    Replies: 1
    Last Post: 14th February 2010, 16:38
  5. drawing a grid
    By dreamer in forum Qt Programming
    Replies: 2
    Last Post: 27th April 2008, 09:17

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
  •  
Qt is a trademark of The Qt Company.