Adding codes manually

Hello again. How can I add code manually to a project on Flipabit. and what version of Flipabit support this.

import QtQuick 2.2
import QtQuick.Dialogs 1.0

Item {
    Connections {
        target: document.childByName("buttonOpenFile").scriptAdaptor
        onEventItemClicked: {
            fileDialog.visible = true
        }
    }
    FileDialog {
        id: fileDialog
        selectMultiple: true
        folder: shortcuts.home
        onAccepted: {
            document.childByName("TextListVideo").content.text = ""+fileDialog.fileUrls
            document.childByName("TextListVideo").content.scriptAdaptor.actionReplaceString(",file:///","
file:///")
            document.childByName("ListVideo").content.model = document.childByName("TextListVideo").content.text
            document.childByName("ListVideo").content.scriptAdaptor.actionSetIndex("0")
            document.childByName("Player").content.scriptAdaptor.actionSetVideo(document.childByName("ListVideo").content.Label)
            document.childByName("Player").loaded = "true"
            document.childByName("Player").content.scriptAdaptor.actionPlay()
        }
        onRejected: {
        
        }
   }
} 

1 Like

What version of the Flipabit app is this

Версия программы - любая. обратите внимание на версию при импортировании
import QtQuick 2.2
import QtQuick.Dialogs 1.0

Any version of the program. pay attention to the version when importing
import QtQuick 2.2
import QtQuick.Dialogs 1.0

1 Like

Hello again. Thanks for…

I need to add a code of .xml file. Where in the app do I do this


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.