Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved How to use custom imports/modules in qbs

    Tools
    1
    1
    267
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kalin last edited by

      Hi
      I'm trying to learn qbs because I think it's pretty decent. But I can't understand some thing ore there is some inconsistency.

      When I use import from qbs library I must import the directory which contain the import. For example if I want to use CppApplication I must import qbs.base or just qbs

      import qbs //valid
      import qbs.base //valid
      
      CppApplication
      {
      //...
      }
      

      (qbs is parent directory of base in /usr/share/qtcreator/qbs/share/qbs/imports/qbs/)
      But if I want to import my own import from /home/kalin/projects/QBS_test/Helpers/imports/myimport/something/
      I must import it like that

      import myimport.something //valid
      import myimport // not valid 
      import something //not valid
      

      and using it like that

      
      something.Example
      {
      //...
      }
      

      Which for me is some kind of inconsistent.
      Can someone explain

      1 Reply Last reply Reply Quote 0
      • First post
        Last post