Results 1 to 5 of 5

Thread: i need help

  1. #1
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation i need help

    hi, it is the first time i make a Qt application and i found aproblem.
    i am using Qt4 and MinGW i have made the application as following:

    qmake -project
    qmake hello.pro
    make


    then to run the program i must run it from the command prompet, i am using windows.
    there is any way to run the program by double click?
    thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: i need help

    sure, just double click the exe file

    NOTE: you might need to have the Qt dlls your program depends on available for your exe (the quick way is to copy them to where your exe is)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: i need help

    Quote Originally Posted by high_flyer View Post
    sure, just double click the exe file

    NOTE: you might need to have the Qt dlls your program depends on available for your exe (the quick way is to copy them to where your exe is)
    when i double click on it the following message appeares:
    this application has failed to start because mingwm10.dll was not found. re-installing the
    application may fix this problem

  4. #4
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: i need help

    yah, it is working when i copied the required dll's to the folder containing the exe
    but can it work without dll's , i mean like "static" in MFC?

  5. #5
    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: i need help

    If you have a static mingw runtime and you link it statically into the application together with static Qt libs, then it will work without external dependencies. Just like MFC

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.