×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    How to use QML inside libraries

    Hello, All!
    Suppose there is a library which contains implementation of various UI widgets (QGraphicItems, QGraphicWidgets). Other applications are able to display these widgets through library's API. Can I somehow to reimplement UI widgets so that they can be used in QML applications? How this will affect applications which already use old API (will we have to use QDeclarativeView in these applications)? Is there any developer's guide of how to do UI porting if UI widgets are encapsulated into separate library? Thanks a lot in advance

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use QML inside libraries

    You can use Qt libraries in QML application. Justify the need for re-implementation.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    Re: How to use QML inside libraries

    Quote Originally Posted by divanov View Post
    You can use Qt libraries in QML application
    But am I able to use QML elements in Qt applications? Examples and demos use QDeclarativeView to work with QML. Is it possible for old Qt applications (which use the UI library) to not use QDeclarativeView for displaying QtQuick UI?

    Quote Originally Posted by divanov View Post
    Justify the need for re-implementation.
    The need is to port existing UI to use powerful and simple Qt Quick UI :-)

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use QML inside libraries

    Quote Originally Posted by mnosov View Post
    But am I able to use QML elements in Qt applications?
    No, you cannot.

Similar Threads

  1. [Qt QML] Questions regarding QML Performance
    By SeanZhang in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-05-05, 13:07
  2. Drawing in QML
    By JeffC55 in forum [Archived] Qt Quick
    Replies: 8
    Last Post: 2011-04-27, 18:22
  3. Qml to C++
    By cristids in forum Qt
    Replies: 1
    Last Post: 2010-06-14, 15:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •