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.