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. I can run qt application on Terminal , However I can't run it on GUI by double clicking
Qt 6.11 is out! See what's new in the release blog

I can run qt application on Terminal , However I can't run it on GUI by double clicking

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 2.3k Views 2 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.
  • J Offline
    J Offline
    jHappy
    wrote on last edited by
    #1

    I have just developed a qt-application on ubuntu-17.
    As building it , I can run it directly on qt creator and I can also run on terminal too.
    But i can't run it on GUI by double clicking
    When i check its property, I can see permission-"Allow executing file as program"

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      In Creator, path are setup for you.
      Most likely in a shell, it has the right paths to find the Qt runtime.
      But when db click its not.

      You should make a deployment folder for it as you will need that anyway if to run on other pc.
      http://www.tripleboot.org/?p=138
      (look at gcc section)

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jHappy
        wrote on last edited by
        #3

        Hi mrjj
        Thank you very much for your commit
        I am trying on one machine above operation
        On only terminal, I can run a file built by qt .
        However I can't run that file on GUI by double clicking

        mrjjM 1 Reply Last reply
        0
        • J jHappy

          Hi mrjj
          Thank you very much for your commit
          I am trying on one machine above operation
          On only terminal, I can run a file built by qt .
          However I can't run that file on GUI by double clicking

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jHappy
          It all comes down to paths and where the Qt so/dlls files are located.

          1 Reply Last reply
          2
          • J Offline
            J Offline
            jHappy
            wrote on last edited by
            #5

            I created new project for checking out above problem.
            This blank project also has the same problem
            That is , double clicking is not works for running a file compiled by Qt
            I use Ubuntu17, QtCreator4.2.1 based on Qt5.8.0
            Platform is 64bit

            mrjjM 1 Reply Last reply
            0
            • J jHappy

              I created new project for checking out above problem.
              This blank project also has the same problem
              That is , double clicking is not works for running a file compiled by Qt
              I use Ubuntu17, QtCreator4.2.1 based on Qt5.8.0
              Platform is 64bit

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jHappy

              It do not matter what Qt project. it all works the same.
              You need to make a deployment folder.

              1 Reply Last reply
              1

              • Login

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