Results 1 to 6 of 6

Thread: QGraphicsView and many QGraphicsPixmapItem items - memory managment

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsView and many QGraphicsPixmapItem items - memory managment

    Thank you for response, I'll check if it works for me as soon as it's possible

    About variables initialization and using "this->". It's part of coding style, which we worked out with friends at university. It gives us common syntax for variables initialization (so it does not matter if we initialize class object or primitive type variable) and unambiguous statements meaning (for example when we have in class field named "foo" and use "foo" as an argument's name in one of methods in the same class). We don't like to have special name pattern for class fields (e.g. add prefix "m_"). We prefer to write:
    Qt Code:
    1. Foo* bar (0);
    To copy to clipboard, switch view to plain text mode 
    instead of:
    Qt Code:
    1. Foo *bar (0);
    To copy to clipboard, switch view to plain text mode 
    because in our opinion "Foo*" stand for valid name type in C++ etc. We have pertty much other "rules"

    Code you see above is a "working draft" Final version is always much more elegant, it has intuitive variables naming, better intending etc.
    Last edited by goofacz; 18th November 2011 at 00:01.

Similar Threads

  1. QGraphicsView + steady Items
    By medved6 in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2010, 19:20
  2. Changing memory allocation managment ( QT 4.4.3 )
    By Link130 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 20th October 2009, 09:44
  3. QGraphicsView properties and performance/memory
    By vkokk in forum Qt Programming
    Replies: 4
    Last Post: 16th July 2009, 18:12
  4. Memory Managment Question
    By tntcoda in forum Qt Programming
    Replies: 4
    Last Post: 25th June 2008, 16:34
  5. QGraphicsView overlapping items
    By juliarg in forum Newbie
    Replies: 1
    Last Post: 5th April 2007, 09:35

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.