Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Anything to consider (in the code) when developing an desktop app for Linux AND Windows?

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

Scheduled Pinned Locked Moved Solved General and Desktop
cross platformlinuxwindows 10
2 Posts 2 Posters 377 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SpaceToon
    wrote on 23 Feb 2020, 13:20 last edited by
    #1

    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 :)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 23 Feb 2020, 15:27 last edited by mrjj
      #2

      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 :)

      1 Reply Last reply
      5

      1/2

      23 Feb 2020, 13:20

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved