Results 1 to 9 of 9

Thread: How to make a list of QGraphicsItems on the scene

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to make a list of QGraphicsItems on the scene

    these errors appear in the moc_container.cpp File when i try to compile the project.
    Error:`qt_metacall´is not a member of ´QGraphicsRectItem´
    Error:`qt_metacast´is not a member of ´QGraphicsRectItem´
    Error:`staticMetaObject´is not a member of ´QGraphicsRectItem´
    make:***[ debug]Error2
    make[1]:***[ debug/moc_container.o]Error1

    may someone tell me please what it means?
    thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: How to make a list of QGraphicsItems on the scene

    Quote Originally Posted by Holy View Post
    these errors appear in the moc_container.cpp File when i try to compile the project.
    Error:`qt_metacall´is not a member of ´QGraphicsRectItem´
    Error:`qt_metacast´is not a member of ´QGraphicsRectItem´
    Error:`staticMetaObject´is not a member of ´QGraphicsRectItem´
    make:***[ debug]Error2
    make[1]:***[ debug/moc_container.o]Error1

    may someone tell me please what it means?
    QGraphicsItems are not QObjects. If you don't need the signals & slots mechanism in Container class, remove the Q_OBJECT macro from its definition.

  3. #3
    Join Date
    May 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to make a list of QGraphicsItems on the scene

    Thanks very much for the answer,it endly compiles but it doesn't do what i expect.
    i've added to items c1 and c2 and i've expected both of them to appear on the scene in one queue, but it is not the case i only can see one item, i suppose that c2 overlap c1 how can i get them listed instead?

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: How to make a list of QGraphicsItems on the scene

    Sorry if I am silly in asking this -
    What exactly u mean by queue ?? You want the items to be arranged in queue ?
    also do u want to move them ?? i was not able to understand what functionality u wanted?

Similar Threads

  1. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 15:43
  2. Replies: 1
    Last Post: 14th May 2007, 15:55
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57

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.