Results 1 to 2 of 2

Thread: How to draw some objects one by one instantly?

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default How to draw some objects one by one instantly?

    I draw some objects with QGraphicsView and QGraphicsScene one by one ,before draw each of them , there are many data to compute.I want that after compute the demand data of drawing one object,the object was drawn instantly.But I find that during all the data being computed,none object was drawn,and all the objects are drawn together after all the data have been computed.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to draw some objects one by one instantly?

    You will have to change your code so that it will draw each item after the data for it was computed.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to show Widget instantly
    By gQt in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2010, 09:36
  2. Replies: 3
    Last Post: 9th January 2010, 15:47
  3. Replies: 2
    Last Post: 27th September 2009, 21:36
  4. Replies: 1
    Last Post: 30th March 2009, 22:25
  5. Replies: 7
    Last Post: 18th July 2006, 21: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.