Ah, you meant QT += core-private Haha. OK, got it. Thank you!
On 9/18/2021 8:34 PM, Alexander Dyagilev wrote:
Can you please show how to do it? :)
On 9/18/2021 7:45 PM, Mårten Nordheim wrote:
Hello!
Did you add core-private (/ CorePrivate) to your dependencies?
It might print a warning
Can you please show how to do it? :)
On 9/18/2021 7:45 PM, Mårten Nordheim wrote:
Hello!
Did you add core-private (/ CorePrivate) to your dependencies?
It might print a warning when you do, though in this case it's to be expected.
Mårten
From:
Hello!
Did you add core-private (/ CorePrivate) to your dependencies?
It might print a warning when you do, though in this case it's to be expected.
Mårten
From: Interest on behalf of Alexander
Dyagilev
Sent: Saturday, September 18, 2021 18:24
To:
Hello guys :)
I'm wondering that is the equivalent for this function:
bool checkPermission()
{
static const QString
PERMISSION("android.permission.WRITE_EXTERNAL_STORAGE");
QtAndroid::PermissionResult r = QtAndroid::checkPermission(PERMISSION);
if (r ==
E.g. here it says, that the function returns int. I could not believe
it. I checked headers and saw the correct value - jobject:
https://doc-snapshots.qt.io/qt6-dev/qnativeinterface-qandroidapplication.html#context
On 9/18/2021 6:54 PM, Alexander Dyagilev wrote:
Yeah, 6.2 documentation is
Yeah, 6.2 documentation is quite buggy :)
On 9/18/2021 6:52 PM, Wesley Krasko wrote:
It works. I figured it out. The documentation for QMediaPlayer 6.2 is
incorrect. I think Qt just copied it from 5.15 and didn't update it.
It still shows using QMediaPlayer the old way when in fact stuff was
It works. I figured it out. The documentation for QMediaPlayer 6.2 is
incorrect. I think Qt just copied it from 5.15 and didn't update it. It
still shows using QMediaPlayer the old way when in fact stuff was
broken out into QAudioOutput, QVideoOutput, etc. So now, you must first get
the
For those who can be interested. Here is my current qt5androidcompat.h
file to ease the support of both Qt5 and Qt6. Here you can find how to
use new Qt6 API:
#pragma once
#include
#ifdef Q_OS_ANDROID
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
#include
using QtJniObject =
So, I've managed to find a right one:
auto meow = app.nativeInterface();
meow->context();
On 9/18/2021 4:11 PM, Alexander Dyagilev wrote:
This does not work too:
QCoreApplication::instance()->nativeInterface()->context();
C:\Users\alexa\Documents\Qt Creator\untitled3\main.cpp:14: error: no
This does not work too:
QCoreApplication::instance()->nativeInterface()->context();
C:\Users\alexa\Documents\Qt Creator\untitled3\main.cpp:14: error: no
matching member function for call to 'nativeInterface'
..\untitled3\main.cpp:14:35: error: no matching member function for call
to
I've also found this:
https://doc-snapshots.qt.io/qt6-dev/qnativeinterface-qandroidapplication.html#details
It says it can be accessed through QCoreApplication::nativeInterface().
I've tried: QCoreApplication::nativeInterface()->context(). It does not
compile: mysterious error : call to
I did find this (using Google):
https://doc-snapshots.qt.io/qt6-dev/qtandroidprivate.html
But I can't use it: #include does not work - it says: fatal
error: 'QtAndroid' file not found. Qt 6.2 RC...
On 9/18/2021 3:53 PM, Alexander Dyagilev wrote:
Hello,
I'm trying to port my Android
Hello,
I'm trying to port my Android application from Qt5 to Qt6. Documentation
seems to be very poorly organized. I can't find anywhere a section about
new Qt Android classes.
Can someone please give me the link (if any)?
___
Interest mailing
Hello,
It seems you just did not install it. See Additional modules section in
the online installer.
Works fine for me.
On 9/17/2021 1:45 AM, Wesley Krasko wrote:
Hi. We have been closely monitoring Qt 6.2 releases as we will need to
create unified builds of our apps ASAP.
For the longest
Hi all,
using video with Qt5 I had the problem that capturing still images from a video
stream always results in saving them to a file and not only to RAM. More
detailed it is described here:
15 matches
Mail list logo