Results 1 to 2 of 2

Thread: Graphics View not updating

  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Post Graphics View not updating

    I am facing a problem with a graphicsLineItem in a graphicsView. The lineItem is activated by a selection made on a tabWidget. The issue is that the lineItem is not highlighting when the appropriate item on the tabWidget is clicked, rather it highlights when the mouse hovers over the graphicsView.

    I feel its cause the graphicsView is not refreshing, but use of update with sceneRect() as parameter is not solving te problem.

    Need some suggestions and solutions for the same.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Graphics View not updating

    We need a small, self-contained example of what you are doing that is not working. There is no auto-magical connection between "a selection made on a tabWidget" (whatever that means) and the selection state of a QGraphicsItem.

Similar Threads

  1. Updating a view from StackedWidget
    By thefatladysingsopera in forum Newbie
    Replies: 1
    Last Post: 28th October 2011, 19:03
  2. Replies: 7
    Last Post: 22nd November 2009, 20:47
  3. Scaling too much on a graphics view
    By natnan in forum Qt Programming
    Replies: 5
    Last Post: 15th September 2009, 13:48
  4. Updating a view on demand
    By schall_l in forum Qt Programming
    Replies: 3
    Last Post: 14th August 2009, 10:34
  5. Updating directory view in a QListView
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2009, 00:48

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.