Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to use custom imports/modules in qbs
Forum Updated to NodeBB v4.3 + New Features

How to use custom imports/modules in qbs

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 352 Views
  • 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 Offline
    K Offline
    kalin
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved