hi,
I have created customized item which inherits from QGraphicsItem.I am drawing some text on such item by implementing paint() event. ( I can not use QGraphicsTextItem)
To change text font i have kept m_textFont member vaiable.
For this item i have created font toolbar from where i can change the font of the text.
From toolbar when i change the font i am calling public method of my customized item where i am assigning selected font to m_textFont.
But the problem is item does not allow me to assign selected font and it throws exception.
Tell if i am doing anything wrong and what would be the correct way.
Regards,
Ashish
Bookmarks