Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Anything to consider (in the code) when developing an desktop app for Linux AND Windows?



  • Hey guys,

    I know that Qt is a great choice if you want to develop cross-plattform application. So I decided to develop a desktop application using QWidget and QCustomplot. My question is, is there anything to consider if I want to design an app for Linux and Windows? I do not mean the deployment process after the application is done developed. I mean if there is something I have to consider in the code, for example when using Bluetooh Low Energy API?
    I don't think so, but maybe you have tips for me so that in the end the deployment process can run smoothly on both platforms.

    Thank you and have a nice day :)


  • Lifetime Qt Champion

    Hi
    In most cases, there is nothing to change as Qt force is exactly to hide the platform details from you.
    You will have to use Qt functions for paths and special folders
    https://doc.qt.io/qt-5/qstandardpaths.html
    and be a bit careful if you construct filenames etc but else
    normally it will just work.

    Bluetooth might be another story as the support pr platform differs
    https://doc.qt.io/qt-5/qtbluetooth-index.html

    Also, Windows 10 had something some oddities wanting you to manually pair devices but on Linux you could auto pair/discover.
    I'm not sure the current status and it might just work.

    Nice day to you too :)


  • Lifetime Qt Champion

    Hi
    In most cases, there is nothing to change as Qt force is exactly to hide the platform details from you.
    You will have to use Qt functions for paths and special folders
    https://doc.qt.io/qt-5/qstandardpaths.html
    and be a bit careful if you construct filenames etc but else
    normally it will just work.

    Bluetooth might be another story as the support pr platform differs
    https://doc.qt.io/qt-5/qtbluetooth-index.html

    Also, Windows 10 had something some oddities wanting you to manually pair devices but on Linux you could auto pair/discover.
    I'm not sure the current status and it might just work.

    Nice day to you too :)