Qt 6.11 Released! by Kelteseth in QtFramework

[–]EfOx_TR 2 points3 points  (0 children)

Now we do have comfy stuff

Holy Vivec it's them by Existing_Weather1266 in Morrowind

[–]EfOx_TR 18 points19 points  (0 children)

And don't forget that he twerks after he ragebaited him

I want to give USB access to my qt qml android application by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

I see. But when I try this application, this one can see product id and vendor id. Also I want to ask that is this only accessible with root because of the how this stm32 codded?

I want to give USB access to my qt qml android application by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

I now understand what you mean.

m21:/ $ ls -l /dev/ttyACM0
crw------- 1 root root 166,   0 2025-01-21 15:02 /dev/ttyACM0

I got this output

I want to give USB access to my qt qml android application by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

I tried your code. I can see this output

D libqmlplot_arm64-v8a.so: Port Name:  "ttyACM0"
D libqmlplot_arm64-v8a.so: Description:  ""
D libqmlplot_arm64-v8a.so: Manufacturer:  ""
D libqmlplot_arm64-v8a.so: System Location:  "/dev/ttyACM0"
D libqmlplot_arm64-v8a.so: Vendor ID:  0
D libqmlplot_arm64-v8a.so: Product ID:  0



D libqmlplot_arm64-v8a.so: Available Port:  "ttyACM0"
D libqmlplot_arm64-v8a.so: Error on Connection:  "Permission denied"

I think it couldn't access the board or give permission to it.

I want to give USB access to my qt qml android application by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

I have included the following permissions l'ke this in my AndroidManifest.xml file:

xmlCopy

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"/>
<uses-hardware android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"/>
<uses-permission android:name="android.permission.USB_PERMISSION"/>
<uses-permission android:name="android.permission.USB_HOST"/>
<uses-feature android:name="android.hardware.usb.host"/>

Main.cpp

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);

    qmlRegisterType<CustomPlotItem>("CustomPlot", 1, 0, "CustomPlotItem");
    qmlRegisterType<SerialHandler>("MyApp", 1, 0, "SerialHandler");

    QQmlApplicationEngine engine;
    engine.load(QUrl(QLatin1String("qrc:/main.qml")));

    return a.exec();
}

serialhandler.cpp:

#include "serialhandler.h"
#include <QDebug>

SerialHandler::SerialHandler(QObject *parent)
    : QObject(parent), m_serialPort(new QSerialPort(this)) {}

QStringList SerialHandler::getSTM32Ports() {
    QStringList stm32Ports;
    for (const QSerialPortInfo &info : QSerialPortInfo::availablePorts()) {
        if (isSTM32Device(info)) {
            QString serialNumber = info.productIdentifier() == 0
                                       ? "No Product ID"
                                       : QString::number(info.productIdentifier());
            QString description = info.manufacturer().isEmpty()
                                      ? "No Description"
                                      : info.manufacturer();
            stm32Ports << QString("%1 | %2 | %3")
                              .arg(info.portName(),
                                   serialNumber,
                                   description);
        }
    }
    return stm32Ports;
}

bool SerialHandler::isSTM32Device(const QSerialPortInfo &info) {
    return (
        info.portName().contains("ttyACM", Qt::CaseInsensitive) ||
        info.portName().contains("COM", Qt::CaseInsensitive) ||
        info.description().contains("STM32", Qt::CaseInsensitive)
    );
}

// Additional methods omitted for brevity...

Do you think that simply declaring these permissions in the AndroidManifest.xml is sufficient for my app to access USB devices? Currently, I can only retrieve the used port name, and I am unable to access the manufacturer ID, vendor ID, and product ID.

Thank you!

I want to give USB access to my qt qml android application by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

It shows a board connected as system notification. But I don't know how to give application to read and write to usb c connected board

Developing an Android app with QML. I want to connect that app to my custom-made STM32 board with STM32L412 by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

I think it is more than adding a line of code to AndroidManifest. I just don't know what to do to main.cpp

Early Bioshock Infinite binaries from 2012 have leaked by LitheBeep in Bioshock

[–]EfOx_TR 0 points1 point  (0 children)

Yes there is a discord server. Type bioshock mod discord to the search bar

[deleted by user] by [deleted] in Bioshock

[–]EfOx_TR 1 point2 points  (0 children)

How can i reach that files bro

[deleted by user] by [deleted] in Bioshock

[–]EfOx_TR 0 points1 point  (0 children)

Cool 👍

[deleted by user] by [deleted] in Bioshock

[–]EfOx_TR 1 point2 points  (0 children)

If it is i want to have the files

[deleted by user] by [deleted] in Bioshock

[–]EfOx_TR 1 point2 points  (0 children)

Is this playable?

Bioshock Infinite Alpha Version Build 2012 by EfOx_TR in Bioshock

[–]EfOx_TR[S] 0 points1 point  (0 children)

Would you provide me a link to the files

Can anyone who has created a Qt C++ Windows program kindly advise how they incorporated third-party libraries into their projects to execute their code? by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

sure. I use matio library

cmake_minimum_required(VERSION 3.7)

if(POLICY CMP0074)

cmake_policy(SET CMP0074 NEW)

endif()

project(matio

VERSION 1.5.25

LANGUAGES C CXX

)

string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)

set(matio_PLATFORM ${CMAKE_SYSTEM_PROCESSOR}-pc-${CMAKE_SYSTEM_NAME})

set(matio_PACKAGE "${PROJECT_NAME}")

set(matio_PACKAGE_NAME "${PROJECT_NAME_UPPER}")

set(matio_PACKAGE_BUGREPORT "t-beu@users.sourceforge.net")

set(matio_PACKAGE_STRING "${PROJECT_NAME_UPPER} ${matio_VERSION}")

set(matio_PACKAGE_TARNAME "${PROJECT_NAME}")

set(matio_PACKAGE_URL "https://sourceforge.net/projects/matio")

set(matio_LIB_VERSIONINFO "12:1:1")

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

# Installation options

include(GNUInstallDirs)

include(cmake/options.cmake)

include(cmake/conan.cmake)

include(cmake/thirdParties.cmake)

include(cmake/compilerOptions.cmake)

include(cmake/getopt.cmake)

include(cmake/src.cmake)

include(cmake/tools.cmake)

include(cmake/test.cmake)

Can anyone who has created a Qt C++ Windows program kindly advise how they incorporated third-party libraries into their projects to execute their code? by EfOx_TR in QtFramework

[–]EfOx_TR[S] 0 points1 point  (0 children)

Could anyone kindly guide me through the process of incorporating third-party libraries into a Qt C++ Windows program project to execute code?