Results 1 to 14 of 14

Thread: Porting Qt application on windows from linux

  1. #1
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Porting Qt application on windows from linux

    I have developed a Qt based application using kdeveloper. I made neccesary changes (change in .pro file and some changes in file system path) and able to run it on linux. The problem is that the connections that I have done manually did not working in windows.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Porting Qt application on windows from linux

    which connections? are there any error messages?

  3. #3
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by kiker99
    which connections? are there any error messages?
    Connection bet ween signals and slots.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by safknw
    Connection bet ween signals and slots.
    They should work the same way as on Linux, unless you have some problem with your build process. Could you show your .pro file?

  5. #5
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Here is the pro file.
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by safknw
    Here is the pro file.
    Well, it looks OK.

    Add "CONFIG += console" to your .pro file, run qmake, make clean and make. When your application is built, run it and see if there are any messages on the console.

  7. #7
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by safknw
    Here is the pro file.
    What Qt version are you using on Windows?

    Project files (*.pro) are different from Qt 3.x to Qt 4.x
    A camel can go 14 days without drink,
    I can't!!!

  8. #8
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by mcosta
    What Qt version are you using on Windows?

    Project files (*.pro) are different from Qt 3.x to Qt 4.x
    I'm using Qt 3.3.5.

  9. #9
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Quote Originally Posted by jacek
    Add "CONFIG += console" to your .pro file, run qmake, make clean and make. When your application is built, run it and see if there are any messages on the console.
    Why don't you try the above?

  10. #10
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    I tried it but it didn't work.

  11. #11
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    What error do you get?

  12. #12
    Join Date
    May 2006
    Location
    Pune,India
    Posts
    63
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    It didn't show any errors.

  13. #13
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Which means everything is fine.

    Can you tell me what exactly are you doing in order to get this running?

  14. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Qt application on windows from linux

    Do you use namespaces?

Similar Threads

  1. Porting Qt application from linux to Windows
    By ankit17.ag in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2009, 21:18
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. Porting Qt embedded application to windows.
    By vipin in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 14th January 2008, 16:08
  4. Font Problem Porting from Windows to Linux
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2007, 10:25
  5. Replies: 2
    Last Post: 9th June 2007, 19:19

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.