Category : qt

I’m working on an Android project on QT Creator as a beginner. When i try to compile & build an apk, i got the following error : Execution failed for task ‘:processDebugResources’. A failure occured while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed Has anyone an idea on why i do ? I got QT 5.15.1, ..

Read more

I want to open a .crt file (certificate) with system default application , currently the file is stored in local disk , I use QDesktopServices::openurl(QUrl::fromLocalFile(file_path)) , then qt knows it is a local file and select the appropriate system program (if have) to open it. But now I want to keep this file’s content only ..

Read more

The task of this function is to check, wether it contains any symbols but digits, spaces or minuses. bool MainWindow::inputExcp() { QString inputStr = ui->input->toPlainText();; QByteArray ba = inputStr.toLocal8Bit(); char *myString = ba.data(); QString warn; char space = ‘ ‘; size_t size = sizeof(myString); try{ for(unsigned long long i = 0; i < size; i++) ..

Read more

//// serverstartThread.h #ifndef SERVERSTARTTHREAD_H #define SERVERSTARTTHREAD_H #include <QObject> #include <QDebug> #include "QThread" #include "listenerthread.h" class ServerStart : public QObject { Q_OBJECT signals: void newClientConnectedSig(); public: explicit ServerStart(QObject *parent = nullptr); ~ServerStart(); listenerThread* listenerthread; QThread* thread; public slots: void run(); void newClientConnectedSig2(); }; #endif // SERVERSTARTTHREAD_H //// serverstartThread.cpp #include "serverstartThread.h" ServerStart::ServerStart(QObject *parent) : QObject(parent) { } ..

Read more