Qt 6.11 is out! See what's new in the release
blog
Type casting QtActivity to customActivity?
Mobile and Embedded
1
Posts
1
Posters
615
Views
1
Watching
-
I use Qt for Android 5.3 to make a small application.
I've created a Java class named: CustomActivity extends from QtActivity, the Java code looks like this:
@public class CustomActivity extends QtActivity
{
};@
In C++ side, we can access the activity through QtAndroid::androidActivity( ) using QtAndroidExtras module. however when I stringify the activity( qDebug( "toString: %s", qPrintable( activity.toString( ) ) ); ), it is not what I desired: CustomActivity, but its super class QtActivity.
I want to cast it into CustomActivity, how to do that?