- Posts: 23
- Thank you received: 1
qtvcp issues
- Ilya
- Offline
- Junior Member
-
Less
More
8 years 3 months ago #114001
by Ilya
qtvcp issues was created by Ilya
Hello,
I want to gradually move from mach3 to linuxcnc.
I often have to change the interface for different clients.
I am interested in using qtvcp which develops ChrisMorley because it suits me perfectly
I'm new to programming and using linuxcnc, so I often have questions.
I had previously asked my questions in this topic , but Chris asked me to create a separate one.
Thanks,
Ilya
I want to gradually move from mach3 to linuxcnc.
I often have to change the interface for different clients.
I am interested in using qtvcp which develops ChrisMorley because it suits me perfectly
I'm new to programming and using linuxcnc, so I often have questions.
I had previously asked my questions in this topic , but Chris asked me to create a separate one.
Thanks,
Ilya
Please Log in or Create an account to join the conversation.
- Ilya
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 3 months ago #114002
by Ilya
Replied by Ilya on topic qtvcp issues
At the moment, after the transition to branch qt5_vcp_cleanup I was faced with the problem:
Before that, everything worked well. But now FileDialog does not open the control program.
The terminal displays:
I could not solve this problem on my own. So I hope for help
Thanks
Before that, everything worked well. But now FileDialog does not open the control program.
The terminal displays:
Code:
Traceback (most recent call last):
File "/home/ilya/qt5-linuxcnc/lib/python/qtvcp/widgets/dialog_widget.py", line 245, in <lambda>
STATUS.connect('load-file-request', lambda w: self.load_dialog())
File "/home/ilya/qt5-linuxcnc/lib/python/qtvcp/widgets/dialog_widget.py", line 272, in load_dialog
self.PREFS_.putpref('last_file_path', path, str, 'BOOK_KEEPING')
AttributeError: 'NoneType' object has no attribute 'putpref'
Thanks
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
8 years 3 months ago #114007
by cmorley
Replied by cmorley on topic qtvcp issues
Is this with the demo screen or a screen you designed?
If it is your design than please check there is a screenoptions widget added.
Screen options sets up the preference file and other things - it will add nothing visually.
I should add code to not crash if there is no preference file. It uses it to remember what folder you were in last.
Please let me know if that helped
Chris M
If it is your design than please check there is a screenoptions widget added.
Screen options sets up the preference file and other things - it will add nothing visually.
I should add code to not crash if there is no preference file. It uses it to remember what folder you were in last.
Please let me know if that helped
Chris M
The following user(s) said Thank You: Ilya
Please Log in or Create an account to join the conversation.
- Ilya
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 3 months ago #114009
by Ilya
Replied by Ilya on topic qtvcp issues
Yes, it helped
This was my screen and I didn't add the screen option.
The demo screen worked at this time.
I want to ask about slots and signals, to run small python scripts.
Thank you for helping me, I am very grateful to you!
This was my screen and I didn't add the screen option.
The demo screen worked at this time.
I want to ask about slots and signals, to run small python scripts.
Thank you for helping me, I am very grateful to you!
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
8 years 3 months ago #114038
by cmorley
Replied by cmorley on topic qtvcp issues
You can use signals and slots to connect widgets to python code.
The sample qt_800x600 uses signals and slot for some of it's widget controls.
( though I see it is sorta broken - i forgot to change the [DISPLAY] entry in the INI file to reflect the name change from qtscreen to qtvcp)
Have you added a handler file in your config folder?
You need to connect signals to the MainWindow and add the function names you would like, then add those functions to your handler file.
I can give more details if you like - I'll try to add some detail about it in the docs.
Chris M
The sample qt_800x600 uses signals and slot for some of it's widget controls.
( though I see it is sorta broken - i forgot to change the [DISPLAY] entry in the INI file to reflect the name change from qtscreen to qtvcp)
Have you added a handler file in your config folder?
You need to connect signals to the MainWindow and add the function names you would like, then add those functions to your handler file.
I can give more details if you like - I'll try to add some detail about it in the docs.
Chris M
The following user(s) said Thank You: Ilya
Please Log in or Create an account to join the conversation.
- Ilya
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
8 years 3 months ago #114059
by Ilya
That would be wonderful!
Replied by Ilya on topic qtvcp issues
cmorley wrote: I can give more details if you like - I'll try to add some detail about it in the docs
That would be wonderful!
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.765 seconds