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. Rendering problem with QML
Forum Updated to NodeBB v4.3 + New Features

Rendering problem with QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 1.5k Views 2 Watching
  • 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.
  • B Offline
    B Offline
    Balaji Sivakumar
    wrote on last edited by Balaji Sivakumar
    #1

    I have created the canvas graph on qml, and it's not rendering, only when I minimize it and maximize the application it renders correctly. So does anyone know about this kind of problem?

    System Spec:
    Windows 10, 64bit
    Qt version: 15.12.9

    **1. A graph was not rendered before minimizing **

    2021-03-12-20-53-19.png

    **1. A graph was not rendered after minimizing **

    2021-03-12-20-53-30.png

    1 Reply Last reply
    0
    • GabrielRRG Offline
      GabrielRRG Offline
      GabrielRR
      wrote on last edited by
      #2

      Hello,

      did you try changing the default renderStrategy value to use a private rendering thread or rangerTarget to Canvas.FramebufferObject? Maybe making some adjustments on those properties can help you.

      Lic-Ing. Jose Gabriel Lopez Villalobos
      Embedded Software Engineer
      RidgeRun Engineering Ltd.
      www.ridgerun.com
      Email: gabriel.lopez@ridgerun.com

      B 1 Reply Last reply
      1
      • GabrielRRG GabrielRR

        Hello,

        did you try changing the default renderStrategy value to use a private rendering thread or rangerTarget to Canvas.FramebufferObject? Maybe making some adjustments on those properties can help you.

        B Offline
        B Offline
        Balaji Sivakumar
        wrote on last edited by Balaji Sivakumar
        #3

        thanks for replying @GabrielRR .

        I will check with your suggestions. And can you give me some more explanation on that, I'm not that good in Qt qml.

        GabrielRRG 1 Reply Last reply
        0
        • fcarneyF Offline
          fcarneyF Offline
          fcarney
          wrote on last edited by
          #4

          @Balaji-Sivakumar said in Rendering problem with QML:

          So does anyone know about this kind of problem?

          Post your Canvas object and code used for rendering. I cannot tell what you are doing.

          C++ is a perfectly valid school of magic.

          1 Reply Last reply
          1
          • B Balaji Sivakumar

            thanks for replying @GabrielRR .

            I will check with your suggestions. And can you give me some more explanation on that, I'm not that good in Qt qml.

            GabrielRRG Offline
            GabrielRRG Offline
            GabrielRR
            wrote on last edited by
            #5

            @Balaji-Sivakumar Sure, I think those are options you get to make a better rendering on what you are doing currently, if you need further explanation maybe you can check the following documentation:

            • RenderTarget: https://doc.qt.io/qt-5/qml-qtquick-canvas.html#renderTarget-prop
            • RenderStrategy: https://doc.qt.io/qt-5/qml-qtquick-canvas.html#renderStrategy-prop

            Lic-Ing. Jose Gabriel Lopez Villalobos
            Embedded Software Engineer
            RidgeRun Engineering Ltd.
            www.ridgerun.com
            Email: gabriel.lopez@ridgerun.com

            1 Reply Last reply
            1

            • Login

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