got error with DialogButton

More
30 Jan 2021 20:13 #197173 by awei
I want to launch a customzied dialog using a DialogButton , Following the Tutorials,creating ui file, adding codes to .ymf,but unfortunatly I received a empty window.Thanks reading and sorry for my English.

link to Dialog Button sample: www.qtpyvcp.com/widgets/dialogs/index.html

ui file:


process:
Attachments:

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 02:50 #197196 by KCJ
Replied by KCJ on topic got error with DialogButton
It is very important to have the {{ file.dir }} directive before the UI file path in the YAML file.

So your line should look like this
ui_file: {{ file.dir }}/logic_form.ui

This is because the YAML parser does not have any concept of file paths, so we have to prerfix any non absolute file paths with the file.dir variable which will be expanded with the directory the YAML file is located in.

I think this will solve your issue, if not let me know and I'll look deeper.

Cheers!
Kurt

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.262 seconds
Powered by Kunena Forum