Results 1 to 12 of 12

Thread: QGraphicsScene update?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsScene update?

    been there done that
    I've tried all manners to update a scene, and all manners to add a widget into a scene...

    Maybe it's not meant to add a QGraphicsView in another?

    (I've tried other QGraphicsProxyWidget and then it works just fine, the problem seems to occur only when I try to add another QGraphicsView)

  2. #2
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QGraphicsScene update?

    Great than

  3. #3
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsScene update?

    Sorry if you misunderstood me, but I still haven't find any solution,
    I really need to add a QGraphicsView into another QGraphicsView, I still get the error...

  4. #4
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QGraphicsScene update?

    Ok,

    I think you know one scene can be observed by several views but your style seems really wierd (adding another QGraphicsView inside the QGraphicsScene which inside another QGraphicsView).

    Hımm, you may try to add a new scene in to your QGraphicsProxyWidget.

    You can also send me your source code if possible. I can check it out.

  5. #5
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsScene update?

    The reason why I'm adding a view to another scene is because my bord (means puzzle) is a class on its own, accidentally using a scene+view itself.

    My interface is a large scene/view, and graphicsitems and buttons are added to that scene. Just like that, I'm adding a Bord (puzzle) class, which is a GraphicsView itself.

    Since the puzzle uses drag and drop, I can't see any other way to implement it.

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

    Default Re: QGraphicsScene update?

    Quote Originally Posted by Gurdt View Post
    The reason why I'm adding a view to another scene is because my bord (means puzzle) is a class on its own, accidentally using a scene+view itself.
    You should be able to rewrite it easily so that the internal scene is replaced by a graphics item with all the functionality retained and the scene items become child items of the "board" item.
    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.


Similar Threads

  1. Problem in QProgressBar update
    By nikhilqt in forum Qt Programming
    Replies: 0
    Last Post: 10th March 2009, 10:20
  2. Replies: 0
    Last Post: 5th March 2009, 06:54
  3. Qt Update project - Opinions wanted
    By pvdk in forum Qt Programming
    Replies: 0
    Last Post: 8th November 2008, 08:41
  4. QPainter update()
    By csvivek in forum Qt Programming
    Replies: 5
    Last Post: 24th March 2008, 09:42
  5. Replies: 1
    Last Post: 26th December 2007, 10:58

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.