@MrBrightSide8: Please tell us more about your setup: Which Operating System are you using, which CAN hardware (and therefore which QCanBus plugin).
Are you generating this error frame or does it occur without cause?
Also, I noticed that the CAN bus example will freeze when it encounters an ErrorFrame. Is that an expected behavior?
Of course this is not expected. I remember playing with error frames some weeks ago and cannot confirm your observation. Can you put a breakpoint when this happens and show me the contents of the error frame in the debugger window? Thanks.
all the time even if there is nothing that has been written !
It is right behavior, please read how its work (e.g. about select() and so on).
It need to use like this (e.g. for writing):
Add data to be written to some internal buffer.
Enable the write notifier.
When the write notifier fired, just take all data from the buffer and send to ::send/::write.
When the write notifier fired again, check for p.3.. If a buffer is empty - just disable wrute notifier.
AFAIK, there are no ways to know that the data are written physically, to client.
BTW: You can use qtserialbus module which implements the SocketCAN support (as I can see from your tag), just use a newest Qt version, as 5.3 is too old.
Thanks for the quick answer. Now I understand I didn't asked my question correctly.
I know it is possible to do this, but I actually want to combine a qml into my .ui widget.
I finally found a tutorial for this (https://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer). It says it is only possible to do this from qt 5.0. For my embedded system I'm working with 4.7. So this isn't possible for me.
The module being pretty new (maybe even technical preview), I'd recommend posting this question on the interest mailing list. You'll find there QtCanBus developers/maintainers. This forum is more user oriented.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.