Results 1 to 4 of 4

Thread: QGraphicsView Problem !!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jun 2008
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGraphicsView Problem !!

    Actually i used update function, but nothing happened !!

    here is the Slot with updated function.

    Qt Code:
    1. GVar= (int)(ui.horizontalSlider->value());
    2.  
    3. MySlot::scene.addEllipse (10, 10, GVar, GVar,
    4. QPen(Qt::black, 15, Qt::SolidLine, Qt::RoundCap,
    5. Qt::MiterJoin),
    6. QBrush(Qt::blue, Qt::DiagCrossPattern));
    7.  
    8. MySlot::scene.setBackgroundBrush(Qt::red);
    9.  
    10. MySlot::view->update();
    11.  
    12. MySlot::view->setAttribute(Qt::WA_DeleteOnClose);
    13. MySlot::view ->show();
    14. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by Gamalof; 13th June 2008 at 19:08.

Similar Threads

  1. Mystic Problem (QGraphicsView + QGLWidget)
    By NoRulez in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 10:39
  2. problem in rendering opengl on QGraphicsView
    By Sandip in forum Qt Programming
    Replies: 17
    Last Post: 15th April 2008, 08:27
  3. Problem determining size of QGraphicsView
    By Bocki in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2008, 14:54
  4. QGraphicsView scrolling problem with 4.3.0
    By hb in forum Qt Programming
    Replies: 8
    Last Post: 30th August 2007, 22:18
  5. Problem with QGraphicsView.
    By kiranraj in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2007, 19:44

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.