Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ComboBox error in target board.

ComboBox error in target board.

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 380 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.
  • E Offline
    E Offline
    eswar
    wrote on last edited by eswar
    #1

    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
        }
    }
    

    }

    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