Qml signal to slot in another qml file

I'm trying to send a signal declared in one qml file to a slot in another. I'm seeing signals from my C++ code, but never from qml files. My files look like this:

TypeSelection.qml

Dialog {

id: dialog

signal backButtonPressed

...

}

Settings.qml

Pane {

id: pane

TypeSelection {

id: typeSelection

}

Connections {

target: typeSelection

onBackButtonPressed: {

//Do backbutton stuff

}

}

If I put a Connections block inside the TypeSelection.qml file, it sees the signal when it's fired, but I never see it in Settings.qml. Both files live in the same directory.