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. add Qt Creator to Select Application Menu (Ubuntu)
Forum Updated to NodeBB v4.3 + New Features

add Qt Creator to Select Application Menu (Ubuntu)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 646 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by JacobNovitsky
    #1

    derived from: https://forum.qt.io/topic/153273/building-qt-creator-from-source/17

    Ubuntu, Jammy Fish

    building from source all set and done:
    I can call my app with /home/j/Downloads/qtcreator_build/bin/qtcreator, I've set desktop file which can be open with Command "type qt", I can add to shorcut favorites tab as well, but If I open my cpp or h files I can not select qt in Select Application list!

    2.png
    !
    1.png

    Pl45m4P C 2 Replies Last reply
    0
    • J JacobNovitsky

      derived from: https://forum.qt.io/topic/153273/building-qt-creator-from-source/17

      Ubuntu, Jammy Fish

      building from source all set and done:
      I can call my app with /home/j/Downloads/qtcreator_build/bin/qtcreator, I've set desktop file which can be open with Command "type qt", I can add to shorcut favorites tab as well, but If I open my cpp or h files I can not select qt in Select Application list!

      2.png
      !
      1.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @JacobNovitsky

      Just search/browse for your application path... it should be where you've built QtCreator.

      If this doesn't work
      Check:

      • https://help.ubuntu.com/stable/ubuntu-help/files-open.html.en

      Btw: Building in "Downloads" might not be the best idea. If you clear your download directory some day cause it's full of other junk, your QtCreator is gone.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      1
      • J JacobNovitsky

        derived from: https://forum.qt.io/topic/153273/building-qt-creator-from-source/17

        Ubuntu, Jammy Fish

        building from source all set and done:
        I can call my app with /home/j/Downloads/qtcreator_build/bin/qtcreator, I've set desktop file which can be open with Command "type qt", I can add to shorcut favorites tab as well, but If I open my cpp or h files I can not select qt in Select Application list!

        2.png
        !
        1.png

        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @JacobNovitsky Qt Creator would be in the applications list, with appropriate file type associations, if you had used the Online Installer (i.e. a desktop file is put in the right place). Beyond that, this is not a function that Qt is involved in.

        This is what the desktop file should look like:

        [Desktop Entry]
        Type=Application
        Exec="/home/j/Downloads/qtcreator_build/bin/qtcreator" %F
        Name=Qt Creator
        GenericName=The IDE of choice for Qt development.
        Icon=QtProject-qtcreator
        StartupWMClass=qtcreator
        Terminal=false
        Categories=Development;IDE;Qt;
        MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;
        

        Desktop files live in ~/.local/share/applications

        PRO files can be problematic because they are variously treated as generic text, MATLAB, or other files by default.

        J 1 Reply Last reply
        1
        • C ChrisW67

          @JacobNovitsky Qt Creator would be in the applications list, with appropriate file type associations, if you had used the Online Installer (i.e. a desktop file is put in the right place). Beyond that, this is not a function that Qt is involved in.

          This is what the desktop file should look like:

          [Desktop Entry]
          Type=Application
          Exec="/home/j/Downloads/qtcreator_build/bin/qtcreator" %F
          Name=Qt Creator
          GenericName=The IDE of choice for Qt development.
          Icon=QtProject-qtcreator
          StartupWMClass=qtcreator
          Terminal=false
          Categories=Development;IDE;Qt;
          MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;
          

          Desktop files live in ~/.local/share/applications

          PRO files can be problematic because they are variously treated as generic text, MATLAB, or other files by default.

          J Offline
          J Offline
          JacobNovitsky
          wrote on last edited by
          #4

          @ChrisW67 said in add Qt Creator to Select Application Menu (Ubuntu):

          Type=Application
          Exec="/home/j/Downloads/qtcreator_build/bin/qtcreator" %F
          Name=Qt Creator
          GenericName=The IDE of choice for Qt development.
          Icon=QtProject-qtcreator
          StartupWMClass=qtcreator
          Terminal=false
          Categories=Development;IDE;Qt;
          MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;

          opened :) thanks

          Last thing: how to delete dummy kit (Desktop) ?
          12.png

          C 1 Reply Last reply
          0
          • J JacobNovitsky

            @ChrisW67 said in add Qt Creator to Select Application Menu (Ubuntu):

            Type=Application
            Exec="/home/j/Downloads/qtcreator_build/bin/qtcreator" %F
            Name=Qt Creator
            GenericName=The IDE of choice for Qt development.
            Icon=QtProject-qtcreator
            StartupWMClass=qtcreator
            Terminal=false
            Categories=Development;IDE;Qt;
            MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;

            opened :) thanks

            Last thing: how to delete dummy kit (Desktop) ?
            12.png

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @JacobNovitsky It is auto-detected by Qt Creator and will come back even if you managed to delete it in (Edit > Preferences > Kits). Removing it in preferences will not remove it from existing projects.

            Just ignore it. Don't use it if you do not want to.

            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