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. Large QQuickPaintedItem item not drawn

Large QQuickPaintedItem item not drawn

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 965 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.
  • R Offline
    R Offline
    Roumed
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      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
      0
      • R Offline
        R Offline
        Roumed
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasRicardo
          wrote on last edited by
          #4

          [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
          0
          • R Offline
            R Offline
            Roumed
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved