Qt Forum

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

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

    QML and Qt Quick
    2
    4
    103
    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.
    • O
      open-src last edited by

      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 Reply Quote 0
      • M
        Mammamia @open-src last edited by

        @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 Reply Quote 0
        • O
          open-src last edited by

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

          M 1 Reply Last reply Reply Quote 0
          • M
            Mammamia @open-src last edited by

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

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