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. "QOpenGLFramebufferObject: Framebuffer incomplete attachment" In "repeated" ChartView
Forum Updated to NodeBB v4.3 + New Features

"QOpenGLFramebufferObject: Framebuffer incomplete attachment" In "repeated" ChartView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.0k Views 1 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.
  • A Offline
    A Offline
    Andresfe
    wrote on last edited by
    #1

    I am getting following warnings in my code:

    QOpenGLFramebufferObject: Framebuffer incomplete attachment.
    QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
    

    Code seems to be working but I'd like to understand what is happening and where the error comes from. This happens on this section of my qml code:

            StackLayout {
                id: graphsStackLayout
                Layout.fillHeight:true
                currentIndex: keysComboBox.currentIndex
                Repeater {
                    model: liveSignalsModel
                    ColumnLayout {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        RowLayout {
                            Label {
                                Layout.preferredWidth: root.topLabelsWidth
                                text: "Channel:"
                            }
                            
                            ComboBox {
                                id: channelsComboBox
                                model: channels
                            }
                        }
                        
                        ChartView {
                            id: chartView
                            Layout.fillWidth: true
                            Layout.fillHeight: true
                            antialiasing: true
    
                            LineSeries {
                                id: line
                                name: key
                                useOpenGL: true
                                axisX: ValueAxis {
                                    min: value.xAxisData["start"]
                                    max: value.sampleCount * value.xAxisData["dx"]
                                    titleText: value.xAxisData["xLabel"] 
                                }
                                axisY: ValueAxis {
                                    min: 0
                                    max: 250
                                    titleText: "[" + unit + "]"
                                }
                            }
    
                            HXYModelMapper {
                                id: mapper
                                model: value
                                xRow: 0
                                yRow: channelsComboBox.currentIndex + 1
                                series: line
                            }
                        }
                    }
                }
            }
    

    liveSignalsModel is a model which contains items of type QAbstractTableModel (an implementation). The error seems to happen only when I have more than one item in my model.

    Thank you in advance for taking the time to read the post

    1 Reply Last reply
    1
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      Does it still happen after you ditch all the layouts? I'd cut away until you find the component doing it first.

      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