Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. why qml can't read the function

why qml can't read the function

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlfunction
2 Posts 2 Posters 837 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.
  • E Offline
    E Offline
    Eman
    wrote on last edited by
    #1

    ApplicationWindow {

    id:window
    visible: true
    width: 640
    height: 480
    title: qsTr("Open Picture")
    
    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            MenuItem {
                text: qsTr("&Open")
                onTriggered: fileDialoge.open()
            }
            MenuItem {
                text: qsTr("Exit")
                onTriggered: Qt.quit();
            }
        }
    }
    
    function imageUrl(text)
    {
        console.log("Url: " + text);
    }
    
    FileDialog {
                id: fileDialoge
                nameFilters: [ "Image files (*.png *.jpg)", "All files (*)" ]
                selectedNameFilter: "Image files (*.png *.jpg)"
                selectMultiple: true
                }
    Button {
        text: "Open"
        anchors.verticalCenter: parent.verticalCenter
        onClicked: fileDialoge.open()
    
         }
    Button {
        x: 136
        text: "Send"
        anchors.verticalCenterOffset: 0
        anchors.verticalCenter: parent.verticalCenter
        onClicked: window.imageUrl(FileDialog.fileUrl)
    
         }
    

    }

    1 Reply Last reply
    0
    • Hamed.MasafiH Offline
      Hamed.MasafiH Offline
      Hamed.Masafi
      wrote on last edited by
      #2

      Hi,
      Please explain exactly what is the problem

      Remote object sharing (OO RPC)
      http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

      Advanced, Powerful and easy to use ORM for Qt5
      https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

      1 Reply Last reply
      0

      • Login

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