Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Building a reusable library, that has no graphical interface, in QML, that has to make HTTP requests
QtWS25 Last Chance

Building a reusable library, that has no graphical interface, in QML, that has to make HTTP requests

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k 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.
  • N Offline
    N Offline
    notgary
    wrote on last edited by
    #1

    I'm attempting to build a Qt Quick project that is not an application, but a library (in C++, I would be building a statically-linked library), and I would like this library to be able to make HTTP requests, but I'm not sure how to go about doing this. My concerns are:

    • I'm not sure how to build/run a QML app without an interface. All the examples I've looked at seem to require me to have a graphical interface of some description (a Rectangle for instance), and hiding the interface still cases it to show up in the task bar.
    • If I can't have a Qt Quick app without an interface, then I'll need to make it a pure JavaScript library, but the loss of the XMLHttpRequest make life more difficult.

    I'm new to QML development, but not to Qt's C++ modules, and I'm not finding a lot of helpful information. Can anyone help me with this issue, and point me to some documentation that would help?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I don't quite get the point why are you trying to do this. Why do you need QML for this? C++ is more than well suited for that use case. Or maybe you just want the QML syntax (in that case, take a look at QBS project to see how to create custom QML languages)?

      (Z(:^

      1 Reply Last reply
      0
      • N Offline
        N Offline
        notgary
        wrote on last edited by
        #3

        Ah, sorry for not being clear about my intentions. I'm trying to build an app using Ubuntu's new QML-based SDK, which has developers building app in pure QML. An example can be found "here":http://developer.ubuntu.com/resources/app-developer-cookbook/mobile/currency-converter-phone-app/. I'd like to build an app that interfaces with a third-party API, and I'd like to build that particular piece of functionality into a separate library.

        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