Changing the window title or hiding the window frame
- LearningLinuxCNC
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 320
- Thank you received: 48
02 May 2022 22:28 #241887
by LearningLinuxCNC
Changing the window title or hiding the window frame was created by LearningLinuxCNC
I am wanting to change the title of the UI window and the icon. The values I put in designer don't pass thru to the UI window when it runs.
Note in the screenshot the title says "Qtvcp-Screen-hasb" also the icon is a basic icon. Not the one shown in the qt designer.
also I see in the qtdragon handler file there is a line that is commented out
if I uncomment this I get an error.
is there another way to just hide the window frame all together. This screen is set up to fill the screen of the operator panel. I don't really need the frame anyway.
Thanks,
Jim
Note in the screenshot the title says "Qtvcp-Screen-hasb" also the icon is a basic icon. Not the one shown in the qt designer.
also I see in the qtdragon handler file there is a line that is commented out
#self.setWindowFlag(Qt.FramelessWindowHint)
if I uncomment this I get an error.
File "/home/sboperator/linuxcnc/configs/Holloway_Sprayball_Machine/hasb_handler.py", line 56, in __init__
self.setWindowFlag(Qt.FramelessWindowHint)
AttributeError: HandlerClass instance has no attribute 'setWindowFlag'
is there another way to just hide the window frame all together. This screen is set up to fill the screen of the operator panel. I don't really need the frame anyway.
Thanks,
Jim
Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
03 May 2022 01:05 #241893
by cmorley
Replied by cmorley on topic Changing the window title or hiding the window frame
loading with the -f switch creates full screen; no window frame.
DISPLAY = qtvcp -f qtdragon
DISPLAY = qtvcp -f qtdragon
The following user(s) said Thank You: LearningLinuxCNC
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2394
- Thank you received: 782
03 May 2022 01:38 #241894
by snowgoer540
Replied by snowgoer540 on topic Changing the window title or hiding the window frame
If you look at the qtplasmac handler there’s example of how to set the window icon as well as the window title. Lines 140 and 360 respectively:
github.com/LinuxCNC/linuxcnc/blob/master...qtplasmac_handler.py
github.com/LinuxCNC/linuxcnc/blob/master...qtplasmac_handler.py
The following user(s) said Thank You: LearningLinuxCNC
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
03 May 2022 10:44 #241903
by cmorley
Replied by cmorley on topic Changing the window title or hiding the window frame
alsoL
[DISPLAY]
DISPLAY= qtvcp qtdragon
TITLE= Qt Dragon
ICON=silver_dragon.png
Icon is relative to the config folder
[DISPLAY]
DISPLAY= qtvcp qtdragon
TITLE= Qt Dragon
ICON=silver_dragon.png
Icon is relative to the config folder
The following user(s) said Thank You: LearningLinuxCNC, snowgoer540
Please Log in or Create an account to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 320
- Thank you received: 48
04 May 2022 01:00 #241958
by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Changing the window title or hiding the window frame
the -f option works well. It puts the UI up on the wrong screen as I am developing. I have a second monitor. Makes working on a UI much easier since the UI is as big as the operators screen.
The .ini entry's don't seem to work. Turning off the -f option the title and the icon still show as in the original post.
Trying snowgoer540's options don't seem to work either. Same result.
The .ini entry's don't seem to work. Turning off the -f option the title and the icon still show as in the original post.
Trying snowgoer540's options don't seem to work either. Same result.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
04 May 2022 01:07 #241959
by cmorley
Replied by cmorley on topic Changing the window title or hiding the window frame
Oh. maybe you are using linuxcnc 2.8?
Please Log in or Create an account to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 320
- Thank you received: 48
04 May 2022 01:11 - 04 May 2022 01:12 #241962
by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Changing the window title or hiding the window frame
Yep, 2.8.2. No big deal. I will run with the-f switch after I get done with development.
Last edit: 04 May 2022 01:12 by LearningLinuxCNC.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.085 seconds