Source of issue
When using the ControlFile widget, the call to the underlying Qt method to get a file path is correct but here:
only the first character of the path is kept. This is because when using the same widget to open a file, a more generic call is made (to be Qt4 and Qt5 compatible I guess) and it is possible to get back a tuple and not just a string.
Potential solution
Possible solutions to this issue could be:
- Test the type of the
value and treat differently tuples and strings
- Check if one is using the widget for opening or saving