[Qt-interest] Problems when using a QLineEdit
NoRulez
norulez at me.com
Mon Oct 25 09:29:31 CEST 2010
Hello,
Ive some problems using a QLineEdit:
1.) When clicking on the LineEdit the first time, then all text should be
selected
2.) If the LineEdit is small (maxWidth = 30) then the direction seems
false (e.g. the text is abcdefghijklmnopqrst):
Here I see qrst not abcd
For 1.) I also tried to overload the focusInEvent() which wont work:
protected:
virtual void focusInEvent(QFocusEvent *e)
{
QLineEdit::focusInEvent(e);
selectAll();
}
For 2.) I tried to set the layoutDirection, but this is wrong and doesnt
solve the problem
I hope someone could help me
Thanks in advance
Best Regards
NoRulez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101025/492df8cf/attachment.html
More information about the Qt-interest-old
mailing list