Results 1 to 7 of 7

Thread: HELP !!! About QGraphicsItemGroup and it's children's event .

  1. #1
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default HELP !!! About QGraphicsItemGroup and it's children's event .

    Hi,everyone:
    Now I come across a though problem . I make a QGraphicsItemGroup which has two children.Children is type of QGraphicsPixmapItem. I call the group A, children B, C.
    when I press B I want it print "B" the same with C, but when I press , it just print "A" .It looks as if the B and C don't receive the press event . How does it work??? what shouId I do??? Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    Code, please.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    Can you speak Chinese ???

  4. #4
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    Do you have some special chinese version of C++ and Qt APIs?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    Quote Originally Posted by wshn13 View Post
    Can you speak Chinese ???
    I can order food in Chinese by pointing fingers and I can order a small coffee (一个小咖啡) if that helps your problem I can also say I come from Poland but I guess you already know I come from Poland so there is no benefit in repeating myself in Chinese :] I could use another small coffee, though...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jun 2011
    Posts
    45
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    Should I post my code here ? but it realy big

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: HELP !!! About QGraphicsItemGroup and it's children's event .

    We don't want your whole code, only the part relevant to the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 7th March 2011, 07:46
  2. Replies: 11
    Last Post: 27th October 2010, 19:48
  3. problem in QGraphicsItemGroup
    By wagmare in forum Qt Programming
    Replies: 1
    Last Post: 14th May 2009, 08:27
  4. copying QGraphicsItemGroup
    By robertson1 in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2008, 07:48
  5. Add two QGraphicsItemGroup
    By ashishsaryar in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2008, 18:00

Tags for this Thread

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.