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

Problem with Transition in Column

Scheduled Pinned Locked Moved Mobile and Embedded
transitioncolumnmoveqml
2 Posts 2 Posters 1.1k Views 2 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.
  • B Offline
    B Offline
    bam500
    wrote on 8 Feb 2016, 15:45 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Feb 2016, 22:41 last edited by
      #2

      Hi,

      Please don't post the same question in multiple sub-forum, on is enough.

      Duplicate

      Closing this one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      2/2

      8 Feb 2016, 22:41

      • Login

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