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. QML_EXTENDED()、 QML_FOEEIGN() seem not to work in 5.15
QtWS25 Last Chance

QML_EXTENDED()、 QML_FOEEIGN() seem not to work in 5.15

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 246 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.
  • O Offline
    O Offline
    open-src
    wrote on last edited by
    #1

    I have run the example below, but it can't work, but I get the error:
    "QQmlComponent: Component is not ready
    (qrc:example.qml:54:1: QLineEdit is not a type
    QLineEdit {
    ^)"
    What should I do?
    https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/qml/referenceexamples/extended?h=5.15

    M 1 Reply Last reply
    0
    • O open-src

      I have run the example below, but it can't work, but I get the error:
      "QQmlComponent: Component is not ready
      (qrc:example.qml:54:1: QLineEdit is not a type
      QLineEdit {
      ^)"
      What should I do?
      https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/qml/referenceexamples/extended?h=5.15

      M Offline
      M Offline
      Mammamia
      wrote on last edited by
      #2

      @open-src
      I am not sure what's wrong with the above example but using QLineEditForeign in the QML solves the issue

      QLineEditForeign {
          leftMargin: 20
      }
      
      1 Reply Last reply
      0
      • O Offline
        O Offline
        open-src
        wrote on last edited by
        #3

        @Mammamia
        Thanks for your reply.
        But, it doesn't make sense to use QLineEditForeign.

        M 1 Reply Last reply
        0
        • O open-src

          @Mammamia
          Thanks for your reply.
          But, it doesn't make sense to use QLineEditForeign.

          M Offline
          M Offline
          Mammamia
          wrote on last edited by
          #4

          @open-src I agree.
          I would suggest open a bug report to Qt mentioning this.

          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