Results 1 to 8 of 8

Thread: Open a QT project (written on pc) in a QT macOSX

  1. #1
    Join Date
    Jan 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Open a QT project (written on pc) in a QT macOSX

    Hi, I'm having a problem opening a project I wrote on a QT for pc in my QT for mac. When I opens it nothing is written in mainwindos.cpp and in others files. QT also show me a window saying:




    What should I do?

  2. #2
    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: Open a QT project (written on pc) in a QT macOSX

    Click Done. The program is asking you which of the installed Qt versions you wish to use to build this project on your Mac. You only have the one Qt installation, so you only have this one option.

    I do not know what you mean by:
    When I opens it nothing is written in mainwindos.cpp and in others files.
    You are opening a project (PRO) file, this should not modify the source files of you program in any way.

  3. #3
    Join Date
    Jan 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Open a QT project (written on pc) in a QT macOSX

    So, on my iMac I saw something linke

    §!(à "'($ù`^"'`ù("

    at the place that the sourcecode I wrote on a pc.
    Otherwise on MacBook Air I don't see nothing at all.

    I't very strange I have two differents reactions...

  4. #4
    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: Open a QT project (written on pc) in a QT macOSX

    Using another text editor on your Mac open one of your source files or the PRO file and inspect its content. Is it good?

  5. #5
    Join Date
    Jan 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Open a QT project (written on pc) in a QT macOSX

    xCode gives ?????????????????????? while another text editor give a blank page. On pc all is ok

  6. #6
    Join Date
    Dec 2010
    Location
    US, Washington State
    Posts
    54
    Thanks
    3
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Open a QT project (written on pc) in a QT macOSX

    Zip the project directory on the pc, copy to the mac and unzip. Check project settings and fix the project shadow build location if it iswrong.

  7. #7
    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: Open a QT project (written on pc) in a QT macOSX

    xCode gives ?????????????????????? while another text editor give a blank page. On pc all is ok
    So the problem has nothing to do with Qt Creator or Qt. You need to transfer the files from your Windows machine to your Mac without mangling them.

    Note: I am assuming you are opening a source file and not a compiled object file on the Mac.

  8. #8
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Open a QT project (written on pc) in a QT macOSX

    I have run into this a couple of times when going back and forth between linux and windows. For example, before opening the project on linux (after it has been build on windows), I do the following:
    1) delete Debug and Release folders
    2) delete Makefile, Makefile.Debug and Makefile.Release
    3) delete object_script.* files
    4) delete <project>.pro.user file

    then open the project in Qt Creator and rebuild.

    When going from linux to windows the steps are similar although some of the intermediate files are called slightly different.

    hope this helps.

Similar Threads

  1. Have Creator open source files with project
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 23rd October 2009, 08:25
  2. Qt open source project
    By s.lateralus in forum Newbie
    Replies: 3
    Last Post: 1st September 2009, 21:11
  3. HELP!!!Qt Creator can not open project file
    By zhouxf in forum Qt Tools
    Replies: 7
    Last Post: 22nd May 2009, 09:56
  4. PHP extensions written in C++/Qt
    By seim in forum Qt Programming
    Replies: 0
    Last Post: 12th February 2009, 00:40
  5. detecting that a file is currently being written to...
    By momesana in forum Qt Programming
    Replies: 11
    Last Post: 31st October 2007, 13:02

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.