do the QGraphicsTextItem have a function to set the cursor width?
Code:
{
d->control->setCursorWidth(width);
}
In the QTextEdit class there have a function to set the Cursor'width for the user.
But In the QGraphisTextItem there is nothing .
How can I to change it ? thanks.
Re: do the QGraphicsTextItem have a function to set the cursor width?
There is no straight way, you my need to sub class QTextCursor and change the paintEvent.
Then set this customized cursor to your QGraphicsTextItem by calling this method:
But the effort not worth, why this cursor width is so important ?
Can you please tell me what is this? Is this some kind of advance programming or what ?:):)
Quote:
Originally Posted by
robertkun
Code:
d->control->setCursorWidth(width);
Re: do the QGraphicsTextItem have a function to set the cursor width?
Quote:
But the effort not worth, why this cursor width is so important ?
Can you please tell me what is this? Is this some kind of advance programming or what ?
oh , I am developing a project likes the soft of the pemier( video edit ),
when you want to input some text ,there have a problem ,the cursor in the edit too thin to find it ...
so it is a trouble .