sorry, but maybe I'm not getting it. See attached picture.
In both cases, when I type text it is indeed left aligned, but once you hit enter, the new text is right aligned. Just curious why that is such a problem for you.
sorry, but maybe I'm not getting it. See attached picture.
In both cases, when I type text it is indeed left aligned, but once you hit enter, the new text is right aligned. Just curious why that is such a problem for you.
Ok. One more time:
I have no problem with alignment. The problem is that text selection in right aligned cell doesn't work. Please see my example. Copy it, paste to main.cpp, complie and run. You will see that there is no problem with alignment.
Notice also that I have used AllEditTriggers so there is no need to double click on the cell.
Run my program move cursor to the first cell in the middle column (which is right aligned), place mouse cursor bewteen letters "o" and "w" and then click. This selects whole word and text cursor is at the end of the word.
This should select only "ro" part of the word and the text cursor should be between "o" and "w" (text cursor should be under mouse cursor).
Now do the same in left aligned column and you will see the difference.
Yes, I can even reproduce it in my example once I select the 'AllEditKeys'.
Is there a particular reason why you want to set it to AllEditKeys?
By default it is set to DoubleClicked|EditKeyPressed|AnyKeyPressed, which I find works reasonable.
Have you tried a different input widget instead of line edit? Maybe those are better for customizing the behavior you want.
sorry I can't be of more help.
Bookmarks