Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem in progressbar



  • Hi

    I am trying to make a progressbar situated inside a rectangular button in vertical orientation and i am setting value of progress bar to 0.8

    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtQuick.Controls 1.4
    import QtGraphicalEffects 1.0
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
        color:"black"
    
    Rectangle
    {
    
    height:100
    width:100
    color:"gray"
    
    
    anchors.centerIn: parent
    
    ProgressBar
    {
    
        orientation: Qt.vertical
        value:0.8
        height:100
        width:10
    
    }
    }
    
    
    
    
    }
    

    ////////

    0_1547719592451_f9b935f2-fefe-4fd2-b07f-c61c81998587-image.png

    the progress bar is not raising upto 0.8 level and I am getting a line at 0.8 level

    How can I solve this problem?


  • Qt Champions 2017

    Yes it is a issue. Try to use the ProgressBar from import QtQuick.Controls 2.4. I have not check it.



  • @dheerendra ok Sir


Log in to reply