Results 1 to 3 of 3

Thread: portable qt application on windows

  1. #1
    Join Date
    Nov 2006
    Posts
    96

    Default portable qt application on windows

    Hey, I was just wondering. If I write an appliction in linux and want it to be usable in windows too and I don't want to istall all the QT libraries and headers, can I just include the relative headers in my application using a relative path "lib/QDialog" and put headers inside the /lib directory in my application's main directory, would it work?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: portable qt application on windows

    I don't know if I completely understand your question, but ... You definetly need the respective libs. A header is like a interface description for the libs. Without the libs, it is useless. On windows, you can place the needed libs in form of dlls (QtCore4.dll, QtGui.dll etc.) in the same directory where your binary resides. This way the application will find those on startup. So you can have a minimal selfcontained directory housing all your apps binary and all libs it depends on.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: portable qt application on windows

    See the Assistant page on deploying applications on Windows. Assistant is your friend.

Similar Threads

  1. qt application interacting with GSMmodem in windows
    By jjbabu in forum Qt Programming
    Replies: 5
    Last Post: 15th October 2007, 11:22
  2. Replies: 2
    Last Post: 9th June 2007, 19:19
  3. transporting qt application fron linux to windows
    By deekayt in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2006, 22:56
  4. Porting Qt application on windows from linux
    By safknw in forum Qt Programming
    Replies: 13
    Last Post: 22nd May 2006, 13:11
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36

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.