You can't tell Qt Creator directly to use a different .user file. It is always 
called yourproject.pro.user. As already said, you can't share the .user file. 
So I see two options for you:

1) Use dropbox to mount your mercurial repository. Don't work on it directly, 
but check the repository from dropbox out locally on Mac and Windows 
separately. After all, you are using a distributed source control, so use it :) 
. That way you share the sources, but actually work on different copies, and as 
long as you don't check the .user into source control you are fine.

2) hack around it by creating separate subdirs projects for win and mac, 
myproject_mac.pro and myproject_win.pro, which simply include your actual 
project. That way you'll have separate myproject_mac.pro.user and 
myproject_win.pro.user and can set up different shadow build directories. Note 
that this is a misleading hack, because the .user files *can not be shared 
between different computers*, even not between computers with the same OS. So 
opening myproject_mac.pro.user on a different Mac than the file was created on 
will most likely fail.

--
Eike Ziller
Principal Software Engineer

Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
________________________________
From: [email protected] 
[[email protected]] on behalf of ext Danny 
Price [[email protected]]
Sent: Thursday, September 29, 2011 16:50
To: [email protected]
Subject: [Qt-creator] Sharing project between platforms

I'm developing a Subdir project consisting of two static libraries and an 
executable for Windows and Mac.

I'm using mercurial for source control on my dropbox account so I can work 
easily on the project on both platforms.

This works fine except for one issue; pro.user files. When I switch systems I 
have to delete the pro.user file and any products (I'm using shadow building) 
and re-import the subdir in order to regen the makefiles for that platform.

Is there anyway to get around this problem? Can I setup creator to correctly 
load the right configuration when it loads the subdir?

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to