Results 1 to 6 of 6

Thread: About QGraphicsView

  1. #1
    Join Date
    Oct 2009
    Posts
    70

    Default About QGraphicsView

    Hi,

    Is it possible to have in a centralwidget of a QMainWindow more than one graphics view ( and so more than one qgraphics scene) ??

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: About QGraphicsView

    Yes.

    Use a layout.

  3. #3
    Join Date
    Oct 2009
    Posts
    70

    Default Re: About QGraphicsView

    Sorry for my reply, but how can I use with QGraphicsLayout more than one graphics view?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: About QGraphicsView

    Ohh, I meant a "widget" layout not a "graphics" layout.

    You have a central widget in your main window.
    Set a layout, like a grid layout, and add as many graphics views as you want.

  5. #5
    Join Date
    Oct 2009
    Posts
    70

    Default Re: About QGraphicsView

    and many graphics scene i want?!

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: About QGraphicsView

    Yes, as many as you want

Similar Threads

  1. QGraphicsView
    By Yayati.Ekbote in forum Newbie
    Replies: 2
    Last Post: 4th March 2010, 15:10
  2. QGraphicsView
    By hgedek in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2007, 09:16
  3. QGraphicsView
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2007, 08:00
  4. QGraphicsView
    By Shawn in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2007, 14:31
  5. help with QGraphicsView
    By Erlendhg in forum Qt Programming
    Replies: 6
    Last Post: 22nd April 2007, 20:26

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.