Changing the window title or hiding the window frame

More
02 May 2022 22:28 #241887 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
#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.

More
03 May 2022 01:05 #241893 by cmorley
loading with the -f switch creates full screen; no window frame.
DISPLAY = qtvcp -f qtdragon
The following user(s) said Thank You: LearningLinuxCNC

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

More
03 May 2022 01:38 #241894 by snowgoer540
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
The following user(s) said Thank You: LearningLinuxCNC

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

More
03 May 2022 10:44 #241903 by cmorley
alsoL

[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.

More
04 May 2022 01:00 #241958 by LearningLinuxCNC
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.

 

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

More
04 May 2022 01:07 #241959 by cmorley
Oh. maybe you are using linuxcnc 2.8?

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

More
04 May 2022 01:11 - 04 May 2022 01:12 #241962 by LearningLinuxCNC
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.107 seconds
Powered by Kunena Forum