File/Directory GUI selector

I have used the example below
and looked through all the doumentaton to
create a Dir/File browser GUI to no avail.
Guidance please

module MyMacro

include RBA

# load the UI file
# TODO: this is how to load a file from a path next to the .lym file
# ui_file = QFile::new(QFileInfo::new($0).dir.filePath("MyDialog.ui"))
# Initially we use the sample file provided as resource
ui_file = QFile::new(":/macro-templates/qt_designer.ui")
ui_file.open(QIODevice::ReadOnly)
dialog = QFormBuilder::new.load(ui_file, Application::instance.main_window)
ui_file.close

def dialog.setup
button.clicked do
slider.value = (slider.value + 1) % 100
end
end

dialog.setup
dialog.exec

end

Sign In or Register to comment.