Results 1 to 1 of 1

Thread: solved Help making a list of QGraphicsPixmapItems

  1. #1

    Default solved Help making a list of QGraphicsPixmapItems

    Nevermind I have found a way to accomplish my goal using a QGraphicsPixmapItem within a class which I put in a list
    I'm having trouble making a list of QgraphicsPixmapItems. What I want to do is have them in a list and when I want to do something with the image like rotate it or move it I can go through the list and do that. Here is what I'm trying.

    QGraphicsPixmapItem *car;
    car = addpixmap(Qpixmap(path));
    QList<QGraphicsPixmapItem> list;
    list.append(car); //This is the line the error occurs at

    When I try this I get this error message multiple times.

    c:\Qt\2010.02.1\qt\include/QtGui/../../src/gui/graphicsview/qgraphicsitem.h:924: error: 'QGraphicsPixmapItem::QGraphicsPixmapItem(const QGraphicsPixmapItem&)' is private within this context

    It points me to the qlist.h file or other header file pointing to something like this

    private:
    Q_DISABLE_COPY(QGraphicsPixmapItem)
    Q_DECLARE_PRIVATE(QGraphicsPixmapItem)

    Any ideas of what is wrong?
    Last edited by jumico; 15th April 2010 at 08:19.

Similar Threads

  1. QGraphicsPixmapItems through QGLWidget - clearing textures?
    By robertson1 in forum Qt Programming
    Replies: 1
    Last Post: 16th October 2008, 23:08
  2. Making shortcut
    By kib2 in forum Qt Programming
    Replies: 4
    Last Post: 28th June 2008, 18:20
  3. Need help making plugin
    By vieraci in forum Qt Programming
    Replies: 10
    Last Post: 24th September 2007, 13:20
  4. making a backup of qt3
    By nass in forum Qt Programming
    Replies: 12
    Last Post: 4th April 2007, 20:23
  5. Help pls with making examples (QT 4.2)
    By igor_x in forum Installation and Deployment
    Replies: 3
    Last Post: 23rd October 2006, 12:45

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.