Results 1 to 15 of 15

Thread: creating qt apps

  1. #1
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default creating qt apps

    Hi, all I do in Qt is just run QtCreator's compiler and display the window/widget that I wrote.
    Few quetions I want to ask:
    1)how to make my Qt project to become a real application?(just click the icon/shortcut to run the program)
    2)do other's pc need to install qt too to run Qt apps?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: creating qt apps

    1. Steps to Programming Qt Applications.
    2. Deployment (it's actually a part of the first link).
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. The following user says thank you to spirit for this useful post:

    Dopt (9th August 2012)

  4. #3
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: creating qt apps

    thanks for reply.
    if I download a qt app from http://qt-apps.org/, I use QtCreator to run .pro file and use?or any other way?

  5. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: creating qt apps

    Opening a pro-file in the QtCreator is enough.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  6. The following user says thank you to spirit for this useful post:

    Dopt (10th August 2012)

  7. #5
    Join Date
    Mar 2011
    Posts
    82
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 2 Times in 2 Posts

    Default Re: creating qt apps

    The second question forces you to read the links provided, but the first one is easily answered; they are real applications already. Open your project folder and look for the "projectname.exe" file. Voilá. Qt as a framework also takes care of building the appropiate binary for whichever platform it is you are on. That is, .exe for windows, or adding the executable metadata into the binary for unix systems and such.

  8. The following user says thank you to alitoh for this useful post:

    Dopt (10th August 2012)

  9. #6
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: creating qt apps

    thanks guys.

  10. #7
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: creating qt apps

    one more question.If I upload my apps in http://qt-apps.org, I just have to upload my .pro file? or deploy all??

  11. #8
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: creating qt apps

    You have to provide the whole source code, the pro file will not be enough. Best you also provide the compiled version.

  12. The following user says thank you to Lykurg for this useful post:

    Dopt (13th August 2012)

  13. #9
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: creating qt apps

    is it the executable file?(I write code in QtCreator and it has automatically build it for me)

  14. #10
    Join Date
    Oct 2009
    Posts
    483
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 97 Times in 94 Posts

    Default Re: creating qt apps

    The source code consists of the headers (.h), code (.cpp), forms (.ui), projects (.pro, .pri), translations (.ts), resources (images, data files, ...), etc.

    The binaries are the executable (.exe on Windows), libraries if you use some and they can be redistributed, compiled translation files (.qm), resources, etc.

  15. The following user says thank you to yeye_olive for this useful post:

    Dopt (13th August 2012)

  16. #11
    Join Date
    May 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: creating qt apps

    I got it. yeye olive, if I'm using Linux, can I make executable Qt file that can run in window?

  17. #12
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: creating qt apps

    Yup, you have to build it on Windows
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  18. #13
    Join Date
    May 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    1

    Default Re: creating qt apps

    hi all,
    reading this thread it was not clear for me if it is possible (in IOS X) to:
    * create a stand alone file opening which my app will run (in whatever other mac, even without Qt)
    watching links above i think this could be linked to the "bundle" concept, but it's not clear at all for me if it's right and in case how to use it

    Could you please give me any advice/tutorial?

    thanks


    Andrea

  19. #14
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 370 Times in 336 Posts

    Default Re: creating qt apps

    See Deploying an Application on Mac OS X.
    Note: macdeploy tool is okay for simple projects when there are only Qt deps.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  20. The following user says thank you to spirit for this useful post:

    giarandrea (16th August 2012)

  21. #15
    Join Date
    May 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    1

    Default Re: creating qt apps

    thanks, i'll try it

Similar Threads

  1. Creating RPMs for Qt apps
    By blooglet in forum Installation and Deployment
    Replies: 0
    Last Post: 21st February 2011, 14:58
  2. Replies: 0
    Last Post: 26th June 2009, 17:53
  3. Qt for non GUI apps?
    By qwavel in forum Newbie
    Replies: 1
    Last Post: 9th March 2009, 02:11
  4. QT 4.4: CLI apps?
    By Hossie in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2008, 11:37
  5. Qt-Apps.org
    By jpn in forum General Discussion
    Replies: 1
    Last Post: 15th December 2006, 18:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.