Changing the window title or hiding the window frame

More
4 years 5 months ago #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.
 

Attachment not found



also I see in the qtdragon handler file there is a line that is commented out
Code:
#self.setWindowFlag(Qt.FramelessWindowHint)

if I uncomment this I get an error.
Code:
  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

Please Log in to join the conversation.

More
4 years 5 months ago #241893 by cmorley
loading with the -f switch creates full screen; no window frame.
DISPLAY = qtvcp -f qtdragon

Please Log in to join the conversation.

More
4 years 5 months ago #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

Please Log in to join the conversation.

More
4 years 5 months ago #241903 by cmorley
alsoL

[DISPLAY]
DISPLAY= qtvcp qtdragon
TITLE= Qt Dragon
ICON=silver_dragon.png

Icon is relative to the config folder

Please Log in to join the conversation.

More
4 years 5 months ago #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 to join the conversation.

More
4 years 5 months ago #241959 by cmorley
Oh. maybe you are using linuxcnc 2.8?

Please Log in to join the conversation.

More
4 years 5 months ago #241962 by LearningLinuxCNC
Yep, 2.8.2. No big deal. I will run with the-f switch after I get done with development.

Please Log in to join the conversation.

Time to create page: 0.117 seconds
Powered by Kunena Forum