it seems that i can achieve this through what android developpers call system_overlay
i still don't know if i can do it with c++
i found that something like this may exist for QML
https://doc.qt.io/qt-5/qml-qtquick-controls2-overlay.html?fbclid=IwAR3aAt6Lj6nVc5drVgLxk9tJ8-jXQS--ZOy2aPsnjoxvqA3L84SfImhVmtM#details
You should rather concentrate on actual real data or at least use realistic test data. Using just two tables does not reflect reality and what you will get from your device.
@Aayushi If you want to compile for Android, you have to select an Android Qt Kit.
As far as I can see, you are using "Desktop Qt 5.15.2 MinGW" kit not "Android Qt 5.15.2", so you are compiling for Windows not Android
@Isaach The open source licenses usually do not matter for tools. GCC for example is licensed under more restrictive GPL but can be used for open source and commercial (closed source) projects.
I found a way:
In Xcode remove the line "-Wl,-e,_qt_main_wrapper" from "Build Settings / Other linker flags" on the project and on all the targets.
Then add back this line only on the main app target.
Rebuild all.
found it finally :D
u need to add add this
android:theme="@android:style/Theme.Translucent"
to <application...> section of AndroidManifest.xml.
then add this to your class:
this->setPalette(Qt::transparent);
source : https://bugreports.qt.io/browse/QTBUG-57394
thx @Gourmet a lot
I solved the problem by myself changing two things:
Changing Pro-File:
TEMPLATE = app
INCLUDEPATH += \
$$PWD/../../../../raspi/qtopcua/src/plugins/opcua/open62541 \
$$PWD/../../../../raspi/sysroot/usr/include
DEPENDPATH += INCLUDEPATH
QT += core gui
QT += opcua
QT += opcua-private
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
qtConfig(open62541):!qtConfig(system-open62541) {
include($$PWD/../../../../raspi/qtopcua/src/3rdparty/open62541.pri)
} else {
QMAKE_USE_PRIVATE += open62541
}
SOURCES += \
main.cpp \
simulationserver.cpp \
$$PWD/../../../../raspi/qtopcua/src/plugins/opcua/open62541/qopen62541utils.cpp \
$$PWD/../../../../raspi/qtopcua/src/plugins/opcua/open62541/qopen62541valueconverter.cpp
HEADERS += \
simulationserver.h\
FORMS += \
simulationserver.ui
TRANSLATIONS += \
OpcUa_Server_RasperryPi4_en_GB.ts
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /home/pi/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
Changing the server-main class type from QWidget to QObject
Old Code:
Simulationserver::Simulationserver(QWidget *parent)
: QMainWindow(parent)
New Code:
Simulationserver::Simulationserver(QObject *parent)
: QObject(parent)
@Qt-embedded-developer
to show popup on video we need to use FrambufferLayerEnable(false) and player->stopPipelineWatch() and on close event of popup we need to use
FrambufferLayerEnable(true) and player->watchPipeline(player->m_pipeline) to gain again at same state.
@Lavanya said in Static-linking of libraries to Qt application:
How to change the .so files to .a for static linking i am not getting
You have to build all dependencies as static libs. Static linking is not an easy task, you should really be carefull whether you want to do this. Instead of static linking you could deploy your app to get a package containing your app and needed libs. See https://doc.qt.io/qt-5/linux-deployment.html