- 
    Suggestion 
- 
    Resolution: Done
- 
     Not Evaluated Not Evaluated
- 
    5.7.0 Beta
- 
    None
- 
        5ddd6bb219102b9561ab7a85cc9c9b8feba17e58 a345430678366db1a0540b4a38718bb12c0962c9
- I'd like to get more information when the above call fails, like "cannot load shared library pcanbasic.dll". For now, the function can only return nullptr.
- From programmers side, it's hard to remember, that backendName is a QByteArray and deviceInterfaceName is a QString. This could be changed to all be QString.
So I'd suggest to have an overload in 5.8 to get the error string:
QCanBus::instance()->createDevice( const QString &backendName, const QString &deviceInterfaceName, QString *errorString = nullptr);
| For Gerrit Dashboard: QTBUG-53642 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 160886,3 | QCanBus: Changed createDevice() API to use only QString | dev | qt/qtserialbus | Status: MERGED | +2 | 0 | 
| 160887,5 | QCanBus: Receive an error message from createDevice() | dev | qt/qtserialbus | Status: MERGED | +2 | 0 |