Results 1 to 5 of 5

Thread: Having problem with QGraphicsItem

  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default Having problem with QGraphicsItem

    Hi,
    I have reimplemented the diagramscene example in Qt4.4 for my requirement. I have used same class and same menu items and i have my own class for different diagrams and their own menu items.
    As in the example the user need to select diagram(process box, conditional box...) from the toolbox and place it on the scene by mouse click. If the user want to name that diagram user need to select text tool from the toolbox,then write the text for that particular item.
    I want to combine both QGraphicsPolygonItem and QGraphicsTextItem and create a new QGraphicsItem so that when ever the user select a particular Item from toolbox and click on scene then the user need to give provision to enter text for that Item then and there itself he need not go and again select the text tool for entering text.
    Hope u understood my problem, how to achieve this take what methods to use plz suggest me.
    thank you,
    with regards,
    sri.

  2. #2
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default Having problem with QGraphicsItem

    How to do this is there is no way for it. somebody help me.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Having problem with QGraphicsItem

    Don't you already have the necessary code in the example application? You just need to combine the two cases.
    J-P Nurmi

  4. #4
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default Re: Having problem with QGraphicsItem

    Ya I know that but can u give hint how to combine these cases.

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Having problem with QGraphicsItem

    Quote Originally Posted by Kingofhearts_sri View Post
    Ya I know that but can u give hint how to combine these cases.
    Perhaps you should try to show some interest in solving the problem? Currently it doesn't feel much like that. What have you done so far? Did you take a look at the code? Did you take a look at the documentation which explains the code almost line by line?
    J-P Nurmi

Similar Threads

  1. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 11:31
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  3. Problem with rotation of QGraphicsItem
    By ashishsaryar in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2008, 16:03
  4. Paint QGraphicsItem problem
    By dreamer in forum Qt Programming
    Replies: 3
    Last Post: 23rd June 2008, 19:18
  5. QGraphicsItem problem - how to save items info ??
    By aamer4yu in forum Qt Programming
    Replies: 3
    Last Post: 17th October 2006, 13:17

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.