I think the OP wants the numeric entry to fill from the right with a forced decimal point like a commercial calculator, not text in a RTL language. For example, entering 123.56 one digit at a time...
Simple right-alignment gets part way there, but the input mask causes issues. There should be a way to use the alignment with a QValidator instead of the mask. Have QValidator::validate() remove any non-digit, insert a decimal two chars from the right (if the string is long enough), and set the editor's string.Qt Code:
 [ 1] [ 12] [ 1.23] [ 12.35] [ 123.56]To copy to clipboard, switch view to plain text mode




							
								
							
								
    
    
      
    
    
      
    
    
    
    
  
				
				
				
					
  Reply With Quote
    
    
    
    
    
    
    
  
			
Bookmarks