Skip to content
  • 143k Topics
    718k Posts
    JonBJ
    @DesiVideoGamer I don't know. It does for me (and everyone else). I imagine it should for DLL or not. I only do widget programs, I don't know whether your QML situation makes any difference. Are you able to produce a minimal example which can be pasted here? For my part (not that I am the one to investigate here) I would not look at external projects, nor multiple files. Otherwise await other responses.
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    Q
    So the solution here is not to use QRhi but the OpenGL api and setting QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL); to force LLVMPipe OpenGL software rendering https://doc.qt.io/qt-6/qtquick-rendercontrol-rendercontrol-rhi-example.html [image: e5a5d0e2-d829-4cd2-be6b-7bafa13d4b4b.png]
  • Everything related to designing and design tools

    129 389
    129 Topics
    389 Posts
    osirisgothraO
    I have a pretty decent setup for development I notice that QT design studio eats resources like candy -- even if my PC can keep up with it, the fans all kick up into high gear as if I had just accepted 30 network rendering jobs. Its only in the studio though, application performance itself is fine, and in QtCreator/Designer things are fine, just that monster seems to eat and eat, I am not surprised at all to hear people with setups under and at mid-end find it completely unusable. Maybe it has something to do with latest trends showing that environments like Unity can prove new developers really will just upgrade and upgrade and not bat an eyelash, carbon emissions be darned we need more games over here! :3
  • Everything related to the QA Tools

    79 215
    79 Topics
    215 Posts
    M
    I have a desktop app which runs on linux. I have my own laptop which runs on windows. I downloaded squish for windows on my own computer. I downloaded vncserver(tigervnc) on desktop app. Hoping to reach to my desktop app via using VNC on squish IDE and record scenarios. On my computer I created test suite, selected VNC as GUI toolkit. I did my configuration as needed under "Server Settings > Manage AUTs > Attacable AUTs". After that created test case and hit record button but got this error lines. "Warning: AUT '__squish__vncaut' (with AUT path '') does not exist FATAL Starting application Application '__squish__vncaut' could not be started. Squish couldn't start the AUT because the program doesn't exist. Make sure the AUT is really built and was not removed. Also make sure that the path to the AUT is correct in the settings. END End of test Giving up after error" I'm sure my vnc server runs on my desktop app. In https://forum.qt.io/topic/155170 i get that we might have similar issue. Should i download squish for qt? Or should i just download squishserver on my desktop app and expect it to be resolved? If i should download squish server on my desktop where can I the server package without downloading whole installation package on the application?
  • Everything related to learning Qt.

    386 2k
    386 Topics
    2k Posts
    Ash_QtA
    Hey there! You can return to the course in the catalog and relaunch it. Are you experiencing issues with this?
  • 2k Topics
    13k Posts
    Kent-DorfmanK
    I do a lot of python/pyqt database access using psycopg2 for PostgreSQL. It's so much easier to prototype these kinds of ideas in a language like python, and if needed then port it to c++, but truth be told, most of the time the python app is just works as is so no need to rewrite in c++. For something as simple as you are alluding to, the hard core OO models using DAO/DTO are probably overkill. Also, when dealing qith SQL queries it's "nice" to work in a language that is NOT strongly typed. Sorry if this is a round-about way to respond. Your path has merit in the realm of intellectual curiosity, but if you want it done quickly then python is a better option, and you can still wrap it in a Qt GUI. Yikes! Didn't notice OP was 9 months ago...
  • 4k Topics
    18k 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".
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    Axel SpoerlA
    Everything looks right in my eyes. If I e.g. search for @Volker-Hilsheimer's blog post about QRangeModel, I'll find it here. Do you have a specific link for me to check?