Skip to content

International

Language specific discussions from Albanian to Turkiye

4.3k Topics 17.5k Posts

Subcategories


  • A forum for those speaking Albanian
    22 66
    22 Topics
    66 Posts
    A
    Nëse jeni aktiv në Qt bëje një like.
  • A forum for those speaking Bulgarian
    57 522
    57 Topics
    522 Posts
    P
    Успях да намеря начин: След като с tasklist взема PID на процеса: QProcess wmic; wmic.start("wmic process where processID=" + pid + " get CommandLine"); wmic.waitForFinished(); output = wmic.readAllStandardOutput(); QString result = output.split("\n").at(1); -> Път + екзе = result.split(" ").at(0).toLower()
  • A forum for those speaking Chinese
    713 2k
    713 Topics
    2k Posts
    Q
    具体操作步骤是这样的 第一步:下载QT源码(5.12.5),并解压 第二步:通过rsync传输目标机的sysroot 第三步:进入源码目录,配置configure文件 第四步:进入源码目录,进入qtbase目录,进入mkespcs目录,进入linux-aarch64-gnu-g++目录,修改qmake.conf: 第五步:运行脚本,然后出现提示 ’make’ 第六步:编译 当qmake.conf改成下面这样的时候,configure都无法完成 [image: 99807b2b-90a4-4aba-9cc4-ad01fa5782a6.png] 用原本的qmake.conf就可以配置成功 [image: 8d116342-bc0a-4b7a-a0ae-e2d88042fafa.png] 最后编译报错: gnu-g++ -o .obj/moc_qmlpreviewfilesystemwatcher.o .moc/moc_qmlpreviewfilesystemwatcher.cpp /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtbase/lib/libQt5Core.so: undefined reference to dlerror@GLIBC_2.17' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtbase/lib/libQt5Core.so: undefined reference to dlsym@GLIBC_2.17' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtbase/lib/libQt5Core.so: undefined reference to dladdr@GLIBC_2.17' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtbase/lib/libQt5Core.so: undefined reference to dlclose@GLIBC_2.17' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtbase/lib/libQt5Core.so: undefined reference to `dlopen@GLIBC_2.17' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:119:../../bin/qmltestrunner] 错误 1 make[3]: 离开目录“/home/hambes/qt-aarch64-build/qt-everywhere-src-5.15.2/qtdeclarative/tools/qmltestrunner” make[2]: *** [Makefile:359:sub-qmltestrunner-make_first] 错误 2 make[2]: *** 正在等待未完成的任务.... 兄弟们,我哪里搞错了😭😭😭😭
  • A forum for those speaking Finnish
    11 32
    11 Topics
    32 Posts
    M
    CLDR (Unicode Common Locale Data Repository), jota Qt nähtävästi käyttää, sanoo (common/main/fi.xml): <unit type="digital-byte"> <displayName>tavut</displayName> <unitPattern count="one">{0} tavu</unitPattern> <unitPattern count="one" case="elative">{0} tavusta</unitPattern> <unitPattern count="one" case="genitive">{0} tavun</unitPattern> <unitPattern count="one" case="illative">{0} tavuun</unitPattern> <unitPattern count="one" case="partitive">{0} tavua</unitPattern> <unitPattern count="other">{0} tavua</unitPattern> <unitPattern count="other" case="elative">{0} tavusta</unitPattern> <unitPattern count="other" case="genitive">{0} tavun</unitPattern> <unitPattern count="other" case="illative">{0} tavuun</unitPattern> <unitPattern count="other" case="partitive">{0} tavua</unitPattern> </unit> eli Qt:llä on dataa, mutta sitä ei osata käyttää. qtbase/util/locale_database/ldml.py yrittää ilmeisesti tehdä hakuja, mutta tekee puutteellisesti, koska units/unitLength[long]/unit[digital-byte]/unitPattern[count=other] ei koskaan haeta (vain short ja narrow haetaan, ei long). Markku
  • A forum for those speaking French

    158 786
    158 Topics
    786 Posts
    O
    Bonjour, Dans votre fonction, call, le device est détruit à la fin de la fonction, Le signal signalWithoutPointer ne peut pas marcher car cela demanderai un copy de l'objet Device mais il s'agit d'un QObject ou le constructeur par copy est désactivé. Le passage d'un pointeur vers Device, ben, la moment juste après le pointeur est null. Le passage avec signal sur pointeur "pointer", lui il marche mais c'est la responsabilité de la classe connection de détruire pointer (et donc de garder une variable dessus). Le plus simple c'est de faire un retour de fonction si vous voulez vous simplifiez la vie. // in Connection.cpp Device* Connection::call() { return new Device("Pointeur"); } //main.qml (à la place de la Connections) property Device device: Connection.call() Dans ce cadre cas là, par passage par pointer via un retour de fonction, l'objet appartiendra au QML et sera détruit par le QML Engine. Cependant, je recommande plutot de passer par une propriété. // in connection.h // je suggère de renommer cette classe en ConnectionController (pour éviter la confusion avec le type qml Connections class Connection : public QObject { Q_OBJECT Q_PROPERTY(Device* device READ device CONSTANT) public: explicit Connection(QObject *parent = nullptr); Device* device() const; private: std::unique_ptr<Device> m_device; }; // in connection.cpp Connection::Connection(QObject *parent) : QObject(parent), m_device(new Device("Pointeur"){} Device* Device::device() const { return m_device.get(); } // main.qml property Device device: Connection.device Ici le device reste la responsabilité de la classe Connection, mais c'est géré par le uinique_ptr. Si le device peut changer, il conviendra d'ajouter un signal deviceChanged et de supprimer le CONSTANT de la Q_PROPERTY pour y mettre un "NOTIFY deviceChanged".
  • A forum for those speaking German
    719 4k
    719 Topics
    4k Posts
    Pl45m4P
    @msauer751 Merkwürdig... wenn sonst alles korrekt läuft, könnte es eine Falschmeldung sein... Ist "nur" eine Warnung (sollte man an sich nie einfach ignorieren), aber solch Tools haben immer eine gewisse false-positive Rate. Auf welche Zeile genau bezieht sich denn die Warnung? Und wie sieht deine CMake-Liste aus? Wird für dein Target SKLIB_LIBRARY definiert? Kommt die Warnung auch, wenn du "dein" Zeug aus dem Header wo die Macros stehen rauswirfst?! Das sollte schon ein eigener Header sein und nicht zusammen mit irgendwelchen Klassendefinitionen vermischt werden. Könnte evtl. mit einer Vorwärtsdeklaration zusammenhängen, wo du auch den selben Header nutzt, aber die Klasse nicht als EXPORT markiert ist... Das class Q_DECL_IMPORT aus der Warnung verwirrt mich...muss ja dann dort her kommen, wo SKLIB_LIBRARY "OFF" ist und darum dann das IMPORT Makro verwendet wird. Ich habe es selbst schon oft genutzt, aber die Warnung noch nie gesehen.
  • A forum for those speaking Greek
    42 171
    42 Topics
    171 Posts
    georgeG
    Κατ΄ αρχήν καλώς σας βρήκα. Είμαι νέος χρήστης του Qt, και έχω μικρή εμπειρία σε C++ Προσπαθώντας να εξοικοιωθώ με τα βασικά, δημιούργησα με τον Qt creator την ελάχιστη εφαρμογή με τον παρακάτω κώδικα: Header: #ifndef CWINDOW_H #define CWINDOW_H #include <QMainWindow> namespace Ui { class CWindow; } class CWindow : public QMainWindow { Q_OBJECT public: explicit CWindow(QWidget *parent = 0); ~CWindow(); private: Ui::CWindow *ui; }; #endif // CWINDOW_H Αρχείο CPP: #include "cwindow.h" #include "ui_cwindow.h" CWindow::CWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CWindow) { ui->setupUi(this); } CWindow::~CWindow() { delete ui; } Αρχείο με την συνάρτηση main(): #include "cwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); CWindow w; w.show(); return a.exec(); } Στο αρχείο main δημιουργείται ένα νέο αντικείμενο w της κλάσης CWindow, σωστά; CWindow w; Όμως δημιουργείται ακόμα ένα νέο αντικείμενο της κλάσης CWindow μέσω του δείκτη *ui CWindow::CWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CWindow) Αν στα παραπάνω δεν έχει κάποιος αντίρρηση, το ερώτημα που έχω είναι γιατί πρέπει να δημιουργηθούν δύο αντικείμενα της ίδιας κλάσης CWindow;
  • A forum for those speaking Hungarian
    27 132
    27 Topics
    132 Posts
    KutyusK
    @Kaguro Szia! Hol szoktatok hirdetni, mert én is többször kerestem már kifejezetten QT állást, de talán eddig egy külföldire akadtam csak.
  • A forum for members from India
    202 1k
    202 Topics
    1k Posts
    M
    That's a pretty random microcontroller
  • A forum for those speaking Italian
    462 2k
    462 Topics
    2k Posts
    SGaistS
    @Christian-Ehrlicher moved !
  • A forum for those speaking Japanese
    96 304
    96 Topics
    304 Posts
    M
    Qt初心者(C++経験はあります)なのですが、実行ファイルにアイコン(.ico)を設定したいのですが、うまくできません。 AIに聞くと、リソースファイルに画像を登録し(登録が適切な表現かは分かりません)、CMakeの方でパスを設定しろと言われたのでやっています。 そうすると表示されません。 皆さんが普段やっているアイコン設定を教えていただきたいです。
  • A forum for those speaking Korean

    50 84
    50 Topics
    84 Posts
    j2dollJ
    QVector를 QThread 간 통신에서 signal과 slot을 통해 전달할 수 있습니다. QVector<int> 같은 기본적인 타입의 QVector는 Qt의 QueuedConnection에서 자동으로 복사되어 전달됩니다. 1. QVector를 signal과 slot을 통해 전달하는 예제 아래 예제에서는 두 개의 QThread가 있고, 하나의 스레드에서 QVector<int> 데이터를 생성하여 다른 스레드로 전달하는 방식입니다. // 데이터를 생성하는 스레드 class Producer : public QThread { Q_OBJECT signals: void dataProduced(QVector<int> data); protected: void run() override { QVector<int> data = {1, 2, 3, 4, 5}; emit dataProduced(data); // QVector 전달 msleep(1000); } }; // 데이터를 처리하는 스레드 class Consumer : public QThread { Q_OBJECT public slots: void processData(QVector<int> data) { qDebug() << "Received QVector<int>:" << data; } }; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Producer producer; Consumer consumer; QObject::connect(&producer, &Producer::dataProduced, &consumer, &Consumer::processData, Qt::QueuedConnection); consumer.start(); producer.start(); producer.wait(); consumer.quit(); consumer.wait(); return a.exec(); } 2. 요약 QVector<int> 같은 기본 타입을 담은 QVector는 Qt의 QueuedConnection에서 자동으로 복사 전달됩니다. 만약 QVector<MyClass>처럼 사용자 정의 클래스가 포함된 경우, Q_DECLARE_METATYPE(MyClass) 및 qRegisterMetaType<QVector<MyClass>>()을 호출해야 합니다. 대량의 데이터를 처리할 경우, 복사 비용을 줄이기 위해 const QVector<int>& 같은 참조를 사용하면 좋습니다. 이렇게 하면 QVector를 QThread 간 안전하게 전달할 수 있습니다.
  • A forum for those speaking Persian
    365 2k
    365 Topics
    2k Posts
    ImElijahI
    سلام دوست عزیز الا میخوام بدونم چکار میکنی کار کردن با Qt ارزششو داشت؟
  • A forum for those speaking Polish
    295 1k
    295 Topics
    1k Posts
    P
    Na początek windeployqt, ale to do końca nie rozwiązuje problemu. Łopatologicznie tworzysz katalog bin, wrzucasz exe i własne dll, konfiguracja. Przerzucasz pliki bibilotek z kompilatora do bin, jak używasz QML, przerzucasz podkatalog qml z kompilatora. Wyrzucasz biblioteki partiami i uruchamiasz APK, póki ci się nie wywali. Jest bardzo dużo zależności między bibliotekami. Nawet nie zobaczysz braków używając dependencis. Jak chcesz uruchamiać tylko u siebie to wystarczy bat, a w nim rozszerzenie ścieżki path przezd uruchomieniem exe, podanie w niej ścieżki do bin, lib, qml
  • A forum for those speaking Portuguese
    421 2k
    421 Topics
    2k Posts
    A
    Pessoal, alguém sabe como eu resolvo a questão para conseguir usar qsqlmysql.dll no cenário do assunto: QT 5.12.12 com MySQL 8 usando caching_sha2_password? Estou usando o MSVC 2017 64bits, já compilei a DLL mas mesmo assim não funciona, recebo o erro Cannot load library qdqlmysql.dll. Não foi possível encontar o módulo especificado! Obrigado
  • A forum for those speaking Romanian
    28 111
    28 Topics
    111 Posts
    T
    if i have 123.656 i want the 124 number in qt into quint16 [Locked as duplicate of: https://forum.qt.io/topic/113231/how-to-convert-double-number-to-quint16 ~kshegunov]
  • A forum for those speaking Spanish
    510 2k
    510 Topics
    2k Posts
    B
    @Eloihr Si tienes razón, el echo de que (Qt::MatchContains) se use en otros escenarios como QtableWidget me confundió bastante.
  • Turkiye
    99 295
    99 Topics
    295 Posts
    O
    28 yaşımdayım Türkiye'de yaşıyorum. Yaklaşık 6-7 senedir Qt Framework ile geliştirme yapmaktayım. Bununla beraber Golang, PostgreSQL, Linux, C/C++ ve siber güvenlik tecrübem mevcut. Qt ile tam zamanlı çalışacağım bir iş arıyorum. İngilizcemin çok iyi olduğu söylenemez. Qt/Qml yeteneklerimi görmek isterseniz göndereceğiniz herhangi bir UI/UX çizimini responsive olarak mobil veya masaüstü olarak kodlayıp gösterebilirim. CV veya iletişim için PM gönderebilirsiniz. Teşekkürler