Results 1 to 2 of 2

Thread: Opening a shapefile

  1. #1
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Opening a shapefile

    Hi..
    I would like to know if it possible to open and display a shapefile ( .shp) on a graphicsView..

    like the way QGIS use to add shapefile that could represent road,lakes, cities...on a map!!

    but in the Qgis library there is already structrue that allow openin' those kind of flles ( VectorLayer) ..
    If someone could help !!
    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Opening a shapefile

    QGraphicsView itself doesn't provide such functionality, but maybe QGIS can read that file for you? For example you might try to create a custom graphics item which has QgsVectorLayer embedded inside.

Similar Threads

  1. Re: Opening Project file Issue in Edyuk
    By philwinder in forum Qt-based Software
    Replies: 6
    Last Post: 5th May 2008, 21:49
  2. Opening an URL that contains accents
    By Nyphel in forum Newbie
    Replies: 8
    Last Post: 26th June 2007, 09:13
  3. Opening a Dialog from a MainWindow FileMenu
    By nbkhwjm in forum Newbie
    Replies: 4
    Last Post: 17th April 2007, 13:24
  4. How to rename a file after opening ?
    By npc in forum Newbie
    Replies: 2
    Last Post: 1st June 2006, 14:36
  5. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 10:33

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.