Results 1 to 10 of 10

Thread: Setting a .pro file for a resource project.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    72
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Setting a .pro file for a resource project.

    Quote Originally Posted by wysota View Post
    It doesn't matter for the installation part. Use the one that's relevant to your project. If your project is an application, use "app", if it's a library use "lib".
    Ok but the original goal was to create a stand-alone project for all resource files and another one for my main application code. If it's impossible I can merge my environment into a single project.

    No, you are using qmake to build your project. You are using Qt Creator to edit files from your project.
    Yes, you are right

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Setting a .pro file for a resource project.

    Quote Originally Posted by zuck View Post
    Ok but the original goal was to create a stand-alone project for all resource files and another one for my main application code. If it's impossible I can merge my environment into a single project.
    Merge it into one project. It doesn't make sense to separate them.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    zuck (8th April 2009)

  4. #3
    Join Date
    Mar 2009
    Posts
    72
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Setting a .pro file for a resource project.

    Thanks! It works!

    This is the final code:

    Qt Code:
    1. # ... CUT ...
    2.  
    3. # Media files.
    4. MEDIASRCDIR = themes/default
    5. MEDIADESTDIR = $$DESTDIR/$$MEDIASRCDIR
    6. style.path = $$MEDIADESTDIR
    7. style.files = $$MEDIASRCDIR/*
    8. INSTALLS += style
    To copy to clipboard, switch view to plain text mode 

    It needs a make install command to works

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Setting a .pro file for a resource project.

    Yes, it does. I thought it was obvious, sorry for not mentioning it explicitely.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 8th July 2008, 19:37
  2. Re: Opening Project file Issue in Edyuk
    By philwinder in forum Qt-based Software
    Replies: 6
    Last Post: 5th May 2008, 20:49
  3. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  4. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 10:22
  5. Replies: 2
    Last Post: 8th November 2007, 20:15

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
  •  
Qt is a trademark of The Qt Company.