got error with DialogButton
30 Jan 2021 20:13 #197173
by awei
got error with DialogButton was created 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:
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.
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
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
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.
Time to create page: 0.262 seconds