Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: how to create or convert exe file in qt

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to create or convert exe file in qt

    am having QT Application i need to convert or want to create new exe file application in qt can any one give me suggestion for this
    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to create or convert exe file in qt

    Just create the new application like you created the first one.

    Cheers,
    _

  3. #3
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    like file->newfile/project->QtWidgetProject->QtGuiApplication
    is this way to create exe file.???
    Quote Originally Posted by anda_skoa View Post
    Just create the new application like you created the first one.

    Cheers,
    _

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by iswaryasenthilkumar View Post
    like file->newfile/project->QtWidgetProject->QtGuiApplication
    is this way to create exe file.???
    It depends what you want to do. If you want a "Qt GUI Application" then yes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    Thanks ,,then how can i see my exe file??
    Quote Originally Posted by wysota View Post
    It depends what you want to do. If you want a "Qt GUI Application" then yes.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    You have to be more descriptive about your problems. What do you mean by "how can I see my exe file"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by wysota View Post
    You have to be more descriptive about your problems. What do you mean by "how can I see my exe file"?
    sorry
    am having qt program ,i have to convert this Qt program to exe file for testing .how can i convert my qt program to exe file?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    Qt program already is an exe file. Just run it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by iswaryasenthilkumar View Post
    sorry
    am having qt program
    A set of C++ source files and supporting files, right?
    i have to convert this Qt program to exe file for testing
    Yes, that will help

    how can i convert my qt program to exe file?
    You compile the C++ source code with your compiler and Qt utilities. If this is a third party package then it will generally come with instructions for doing just this. The general pattern is:
    • Run qmake (or CMake if that is being used)
    • Run make
    • Run program
    • Profit

  10. The following user says thank you to ChrisW67 for this useful post:

    iswaryasenthilkumar (29th April 2015)

  11. #10
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    Thank you so much .how can i see my exe file??
    Quote Originally Posted by ChrisW67 View Post
    A set of C++ source files and supporting files, right?

    Yes, that will help


    You compile the C++ source code with your compiler and Qt utilities. If this is a third party package then it will generally come with instructions for doing just this. The general pattern is:
    • Run qmake (or CMake if that is being used)
    • Run make
    • Run program
    • Profit

  12. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by iswaryasenthilkumar View Post
    Thank you so much .how can i see my exe file??
    Are you asking where the compiler put your application binary after compilation?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #12
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    yes wysota,,after compilation i got build folder of my filename
    Quote Originally Posted by wysota View Post
    Are you asking where the compiler put your application binary after compilation?

  14. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by iswaryasenthilkumar View Post
    yes wysota,,after compilation i got build folder of my filename
    If you use QtCreator then the output directory is whatever you put in the Build Settings group in the Project pane if shadow build is active or the default target directory for your platform relative to project directory otherwise.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    iswaryasenthilkumar (29th April 2015)

  16. #14
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    after creation of my qt program i got
    Qt Code:
    1. filename.pro
    2. filem=name.pro.user
    3. widget.cpp
    4. widget.h
    5. main.cpp
    6. widget.ui
    To copy to clipboard, switch view to plain text mode 
    after compilation over i got
    Qt Code:
    1. filename
    2. main.o
    3. makefile
    4. moc_widget.cpp
    5. moc_widget.o
    6. ui_widget.o
    7. widget.o
    To copy to clipboard, switch view to plain text mode 
    from this how can i find my exe file??

    Quote Originally Posted by wysota View Post
    If you use QtCreator then the output directory is whatever you put in the Build Settings group in the Project pane if shadow build is active or the default target directory for your platform relative to project directory otherwise.

  17. #15
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    "filename" is your exe file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  18. The following user says thank you to wysota for this useful post:

    iswaryasenthilkumar (29th April 2015)

  19. #16
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    Thank you so much wysota.. i have one more doubt,,if suppose my project goes to testing whether its possiple to send my filename(exe file)???
    Quote Originally Posted by wysota View Post
    "filename" is your exe file.

  20. #17
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create or convert exe file in qt

    Quote Originally Posted by iswaryasenthilkumar View Post
    if suppose my project goes to testing whether its possiple to send my filename(exe file)???
    Why are you asking me that? Ask the one who you are going to send the file to.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  21. #18
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create or convert exe file in qt

    i have sent this filename(exe) in mail for testing ,, but my tester mailed "The file u sent is not the executable file. it is some data file." i have attache my screen shots,,that diamond symbol is my exe file ??? still i dnt clear in my doubt plss help meScreenshot from 2015-05-05 15:14:00.jpg
    Quote Originally Posted by wysota View Post
    "filename" is your exe file.

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

    Default Re: how to create or convert exe file in qt

    Yes, the file named "digital" with the diamond-shaped icon is the executable file. For your information:
    • the "*.o" files (a.k.a. the object files) are the files obtained by compiling the .cpp source files individually;
    • the "moc_*.cpp" files are C++ source files generated by Qt (more precisely, the moc) that implement the runtime of Qt's object model for your QObject-derived classes;
    • the "ui_*.h" files are C++ source headers generated by Qt Designer that implement the UI of the widgets created in the designer;
    • "Makefile" is the platform-specific makefile generated by qmake to drive the build process.

  23. #20
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to create or convert exe file in qt

    What is the operating system of the tester ?

Similar Threads

  1. Replies: 1
    Last Post: 25th October 2012, 12:42
  2. Replies: 1
    Last Post: 7th April 2011, 04:45
  3. Replies: 9
    Last Post: 17th November 2010, 07:18
  4. Convert doc into txt file using Qt
    By live_07 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 14:27
  5. Replies: 3
    Last Post: 25th May 2007, 07:49

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.