I was able to resolve an issue I was having with Qt by modifying the implementation of a method in a core class (see this post ). Although I believe this change would be a valuable addition to Qt, it's a completely wrong way to deal with this issue unless the change somehow makes its way into a future Qt release.
What I need to do is create a new Qt quick item that will do everything that the PositionSource
item does today, but with a new implementation of the nmeaSource
property handler method (void QDeclarativePositionSource::setNmeaSource(const QUrl &nmeaSource)
).
The comments in the code specify that this code may change in future releases so I guess I shouldn't just subclass it and override the method. I thought of copying the header and source of the class into my project directly and make the changes there.
Any suggestions?