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

Problem with Transition in QML

Scheduled Pinned Locked Moved QML and Qt Quick
qmltransitioncolumnmove
1 Posts 1 Posters 752 Views
  • 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
    bam500
    wrote on 8 Feb 2016, 16:05 last edited by
    #1

    Hi everybody,

    I'm experiencing an issue with a Transition in a Column I use to change the language of my app. I touch the flag of the default language to spread out all the languages so that I can chose the language. Everything works but when I want to do it again I can't spread out the flags.

    Here's the code :

    import QtQuick 2.4
    
    Column {
        id: languageMenu
    
        property int defaultHeight: 64
        property int defaultWidth:  64
        property string currentLanguage: translation.currentLanguage
        property bool sendMessage: false
    
        Icon {
            id:languageFr
            iconImgWidth:defaultWidth
            iconImgHeight:defaultHeight
            border.width: 0
            label: constants.APPLI_NO_DATA
            iconImgSource: constants.APPLI_LANG_FRANCAISE_IMGSRC
            iconBorderImgSource: constants.APPLI_NO_IMGSRC
            iconStateImgSource: constants.APPLI_NO_IMGSRC
            visible: translation.frVisible
            execFunction: (function()
            {
                translation.selectLanguage("FRA");
                map.setMapLoLhd(true);
            })
        }
    
        Icon {
            id:languageEn
            iconImgWidth:defaultWidth
            iconImgHeight:defaultHeight
            border.width: 0
            label: constants.APPLI_NO_DATA
            iconImgSource: constants.APPLI_LANG_ANGLAISE_IMGSRC
            iconBorderImgSource:constants.APPLI_NO_IMGSRC
            iconStateImgSource: constants.APPLI_NO_IMGSRC
            visible: translation.enVisible
            execFunction: (function()
            {
                translation.selectLanguage("ENU");
                map.setMapLoLhd(true);
            })
        }
    
        Icon {
            id:languageAr
            iconImgWidth:defaultWidth
            iconImgHeight:defaultHeight
            border.width: 0
            label: constants.APPLI_NO_DATA
            iconImgSource: constants.APPLI_LANG_ARABE_IMGSRC
            iconBorderImgSource: constants.APPLI_NO_IMGSRC
            iconStateImgSource: constants.APPLI_NO_IMGSRC
            visible: translation.arVisible
            execFunction: (function()
            {
                translation.selectLanguage("ARB");
                //map.setMapLoLhd(false);
            })
        }
    
        Icon {
            id:languageEsp
            iconImgWidth:defaultWidth
            iconImgHeight:defaultHeight
            border.width: 0
            label: constants.APPLI_NO_DATA
            iconImgSource: constants.APPLI_LANG_ESPAGNOLE_IMGSRC
            iconBorderImgSource: constants.APPLI_NO_IMGSRC
            iconStateImgSource: constants.APPLI_NO_IMGSRC
            visible: translation.espVisible
            execFunction: (function()
            {
                translation.selectLanguage("ESP");
                map.setMapLoLhd(true);
            })
        }
    
        move: Transition {
            NumberAnimation { properties: "x,y"; duration: 200 }
        }
    }
    

    Anyone would have an idea ?

    Regards,

    1 Reply Last reply
    0

    1/1

    8 Feb 2016, 16:05

    • Login

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