Results 1 to 3 of 3

Thread: Widget for tiled map editor

  1. #1
    Join Date
    Dec 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Widget for tiled map editor

    Hello, i have a simple question.
    I need to make a tiled map editor for my platformer game, so I started learning QT.
    I have following questions:
    • What widget i am supposed to used to create a simple MxN pixels field? QGraphicsScene or QGraphicsView?
    • How can I put a tile on scene so that it crearly fits it's 32x32 cell?

    Maybe anyone can share experience doing something like that?
    Thanks for answers, i am new to this.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Widget for tiled map editor

    Quote Originally Posted by vladkomarr View Post
    What widget i am supposed to used to create a simple MxN pixels field? QGraphicsScene or QGraphicsView?
    QGraphicsScene is not a widget. You will need both QGraphicsView and QGraphicsScene as the latter acts as a model for the former.
    How can I put a tile on scene so that it crearly fits it's 32x32 cell?
    Make it have a size of 32x32.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Widget for tiled map editor

    Thanks for reply.

Similar Threads

  1. Use Qt Creator's text editor widget?
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2011, 21:39
  2. How to draw a line with tiled images with QPainter?
    By MadBear in forum Qt Programming
    Replies: 5
    Last Post: 25th July 2011, 06:36
  3. How to use custom widget editor with QItemDelegate
    By wysman in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2009, 18:20
  4. GDAL+QT, tiled geotiff
    By Nithya in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2008, 12:47
  5. squeezed editor-widget in my listview.
    By momesana in forum Qt Programming
    Replies: 0
    Last Post: 30th March 2008, 12:10

Tags for this Thread

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.