Hi all,
I have a custom Line editor who act as SliderLineEdit (like a spinbox horizontal without button).
All works fine but on the double click event I change ReadOnly to false to allow to edit value by hand and here comes the problem.
The problem is the text cursor is not visible until I use an arrow key (left or right) or I put a value by key.
Here the code of the double click event :
Qt Code:
  1. void CDoubleSliderLineEdit::mouseDoubleClickEvent( QMouseEvent* event )
  2. {
  3. // Check if we are in read-only mode.
  4. if( isReadOnly() )
  5. {
  6. // Change states.
  7. setReadOnly( false );
  8. m_SliderMode = false;
  9.  
  10. // Restore override cursor.
  11. QApplication::restoreOverrideCursor();
  12. }
  13. else
  14. {
  15. // Base class.
  16. QLineEdit::mouseDoubleClickEvent( event );
  17. }
  18. }
To copy to clipboard, switch view to plain text mode 
I have to add m_SliderMode = false;, without it it's blocked like one mouse pressed but never released.
Thanks for the help