Results 1 to 6 of 6

Thread: import qml file and all contents or import some contents of the qml file?

  1. #1
    Join Date
    Jan 2016
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default import qml file and all contents or import some contents of the qml file?

    import qml file and all contents or import some contents of the qml file?
    what do you prefer?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: import qml file and all contents or import some contents of the qml file?

    Can you rephrase that?
    What do you mean by that?

    Cheers,
    _

  3. #3
    Join Date
    Jan 2016
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: import qml file and all contents or import some contents of the qml file?

    Qt Code:
    1. Item
    2. {
    3. Text{}
    4. Image{}
    5. TextField{}
    6. }
    To copy to clipboard, switch view to plain text mode 

    1- import item ( all text, image, textfield )
    2- import text (how?)
    3- make qml file for all text and import from it (also make qml file for i,imge and qml file for textfield)
    what do you prefer?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: import qml file and all contents or import some contents of the qml file?

    All these are standard QtQuick items, you import them with just a sinle
    Qt Code:
    1. import QtQuick 2.0
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  5. #5
    Join Date
    Jan 2016
    Posts
    13
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: import qml file and all contents or import some contents of the qml file?

    thanks anda_skoa, and sorry i will clear my question.
    i have A.qml
    Qt Code:
    1. Item
    2. {
    3. Text{}
    4. Image{}
    5. TextField{}
    6. }
    To copy to clipboard, switch view to plain text mode 
    what do you prefer?
    1- import Item{} ( import all element of A.qml text, image, textfield )
    2- import Text{} (import one element of the A.qml)(how?)
    3- make qml file Texts.qml for Text{} and all Texts in my progect,
    make Images.qml for Image{} and all Images of my progect and TextField so on

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: import qml file and all contents or import some contents of the qml file?

    I am sorry but this does still not make any sense.

    So you have a file called A.qml which contains a certain custom element made from standard elements.

    Your (1) and (2) are just invalid syntax so I can't even guess what you mean.
    Your (3) does not make much sense as in why do you want to instantiate all of your Text elements in one place?

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 21st May 2011, 22:19
  2. How to import qss into another qss file
    By bedbuffer in forum Newbie
    Replies: 1
    Last Post: 4th April 2011, 11:22
  3. how to import a file into qt when double clicking a file.
    By berlinud in forum Qt Programming
    Replies: 14
    Last Post: 16th September 2010, 16:13
  4. QT Sqlite database import/ export csv file
    By logesh in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2010, 05:35
  5. import pdf file as image
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2008, 06:43

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.