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. Same GUI project for Windows and Linux
Forum Updated to NodeBB v4.3 + New Features

Same GUI project for Windows and Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 702 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    column
    wrote on last edited by
    #1

    Hello,

    I'm planning to create very simple one form GUI application that should be compiled in Windows and Linux. Which way I should approach to achieve that? Should I create simple widget project in Linux ant then move it to windows?

    Is it important to use any defined tool set in this situation?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HalfTough
      wrote on last edited by HalfTough
      #2

      As long you don't use Wnidows/Linux specific libraries and use solutions like QStandardPaths for getting OS dependent values, code written using qt should compile on any major platform.

      On top of that you might try cross-compilation (I never did that myself so I have very little knowledge about it) or setting up a VM that will share your project somehow (either by sharing directory or git).

      Also, remember that Windows doesn't distinguish between small and big letters in filenames. So if you try to load file named File.txt as file.txt it will work on Windows, but not on Linux.

      aha_1980A 1 Reply Last reply
      2
      • H HalfTough

        As long you don't use Wnidows/Linux specific libraries and use solutions like QStandardPaths for getting OS dependent values, code written using qt should compile on any major platform.

        On top of that you might try cross-compilation (I never did that myself so I have very little knowledge about it) or setting up a VM that will share your project somehow (either by sharing directory or git).

        Also, remember that Windows doesn't distinguish between small and big letters in filenames. So if you try to load file named File.txt as file.txt it will work on Windows, but not on Linux.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @column,

        @HalfTough is right, usually Qt programs work smooth on all platforms.

        The best advice I can give you is to have some VCS like git and regularly test on both platforms. If you have a Build Server for both platform, the better.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          One small correction: the case sensitivity depends on the file system you use not the OS itself. For example, the old default for macOS was to ignore the file name casing. But you can select different case sensitive file systems to run it on.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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