[Interest] Qt Creator - questions HowTo copy/past src/res

ekke ekke at ekkes-corner.org
Fri Feb 19 17:04:49 CET 2016


Got no answers in the forums, so I'm trying it here.

while preparing a blog series for BlackBerry 10 (and other) devs HowTo
use Qt Creator for Qt 5.6 vs Eclipse Momentics (Cascades, Qt 4.8) I'm
having some questions.
Hope I understood it right how QtCreator is doing "things" ;-)

1.  copy / paste resources
    Having two projects open and want to copy some icons from project A
to project B
    In Momentics I would mark some files from project A tree, then copy
and in project B tree paste them.
    This seems not to work with Qt Creator.
    Is this the right way:
    go to the file system
    copy files from A to B (per ex. copy images/arrow.png,
images/arrow at 2x.png,...)
    if not exist create the images subfolder
    then back to Qt Creator
    select qml.qrc, add existing files, select the images and then they
appear in qml.qrc and are under control of Qt Creator
    am I right that there's no automatical sync with file system ? so
renaming, delete, add must be done from inside Qt Creator ?

2.  qml.qrc and QML
    looked at some samples and also created new Qt Quick applications
and noticed:
    the main.qml was automatically generated from new project wizard and
ONLY inside the qml.qrc file
    some other examples - per ex. gallery from Qt 5.6 qt.labs.controls:
    the gallery.qml was visible inside the gallery.qrc
    but below the Resources folder there's also a folder named 'QML'
containing the same gallery.qml
    how will this be done to show the same qml file inside .qrc and also
inside QML folder ?
    or is it ok if all qml files are only insie .qrc ?
    what's the recommended way ?

3.  copy/paste src code
    if I want to copy/paste .cpp, .h source files from another project,
    I have to do it the same way as with resources described at 1. above ?

4.  code generated from outside into the project
    I'm working on a DSL to generate code from a model into a project
    (already done for Momentics/Cascades, now working to make this
generator x-platform for Qt 5.6 mobile - will be open source)
    I'm generating the code into a subfolder /src-gen
    would it be ok to also generate a .pri with HEADERS and SOURCES of
generated files and include this into my .pro ?

thanks for helping
don't want to provide wrong recipes in articles for blog and print media
-- 

ekke (ekkehard gentz)

independent software architect
international development native mobile business apps
BlackBerry 10 | Qt Mobile (Android, iOS)
workshops - trainings - bootcamps

*BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner*

max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke at ekkes-corner.org
blog: http://ekkes-corner.org
apps and more: http://appbus.org

twitter: @ekkescorner
skype: ekkes-corner
LinkedIn: http://linkedin.com/in/ekkehard/
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160219/a326b4a0/attachment.html>


More information about the Interest mailing list