Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Large QQuickPaintedItem item not drawn

    QML and Qt Quick
    2
    5
    778
    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.
    • R
      Roumed last edited by

      I try to make an signal view for my QML app. So i need navigate on signal. For this purpose i've inherited from QQuickPaintedItem and overload painted() method.
      But if my component is larger then 8100x369 there is only black square on at the place.
      How to solve this problem? How to create an extremly large component?

      1 Reply Last reply Reply Quote 0
      • D
        dasRicardo last edited by

        In think you reached the maximum texture size. One options can be to split the content in multiple QQuickPaintedItems. Another way, split the content into multiple textures and use SceneGraph with "QSGSimpleTextureNode":http://qt-project.org/doc/qt-5/qsgsimpletexturenode.html and "QSGTextureMaterial":http://qt-project.org/doc/qt-5/qsgtexturematerial.html for better performance.

        **Sorry for my english :)

        PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

        1 Reply Last reply Reply Quote 0
        • R
          Roumed last edited by

          Possible, but why other elements with the same size can be drawn?

          1 Reply Last reply Reply Quote 0
          • D
            dasRicardo last edited by

            [quote author="Roumed" date="1410525665"]Possible, but why other elements with the same size can be drawn?[/quote]
            What do you mean with other elements. Other elements of your custom class or other qml elements like Rectangle with the same size as your custom element? What do you do in your paint method? I don't know. Not so much info right here.

            **Sorry for my english :)

            PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

            1 Reply Last reply Reply Quote 0
            • R
              Roumed last edited by

              Nothing: it is just empty method. But i use setFillColor() to set background color: so that's i know, that something is wrong. Application output haven't any messages.

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