ComboBox error in target board.



  • I created a customise combo box in qml. The combo box is in run in qt console without any error. If i port in target niotrogen board, it will not run. If I press dropdown icon , it shows error "EGLFS: OpenGL windows cannot be mixed with others.Aborted". The process is aborted. How can i overcome this error.
    My code:

    import QtQuick 2.5
    import QtQuick.Controls.Styles 1.4
    import QtQuick.Controls 1.4

    Item {

    id: item_combobox
    
    property int cbwidth:250
    property int cbheight:50
    property int cbradius:5
    property int cbborderwidth:1
    property string cbbordercolor:"#CBCBCB"
    property string cbcolor:"white"
    property string cbtext
    property string cbtextcolor:"#197395"
    property int cbpixelsize:20
    property bool cbfontitalic
    property bool cbfontbold:true
    property string fontfamily:"Helvetica - Neue LT Pro - 75 Bold"
    property url cbsource:"Image/down.png"
    property int cbcurrentindex:0
    property var cbmodel
    
    signal currentindexchanged(string combo_text)
    
    width: cbwidth
    height: cbheight
    
    ComboBox{
        id:cb
    
        width: cbwidth
        height: cbheight
        model: cbmodel
        currentIndex: cbcurrentindex
        editable: true
    
    
    
    
        onCurrentTextChanged: {
            currentindexchanged(cb.currentText)
    
        }
    
        style:ComboBoxStyle{
    
            dropDownButtonWidth : 40
            textColor:cbtextcolor
    
            renderType:2
            background: Rectangle {
                id: style_background
                radius: cbradius
                border.width: cbborderwidth
                border.color: cbbordercolor
                color: cbcolor
            }
    
            label:Label{
                text:cb.currentText
                color : cbtextcolor
                font.pixelSize: cbpixelsize
                verticalAlignment: Text.AlignVCenter
                font.bold:cbfontbold
            }
        }
    
        Image{
    
            height: 50
            width: 40
            anchors.right:parent.right
            source: cbsource
        }
    }
    

    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.