Displaying pictures on buttons

More
4 years 9 months ago #230467 by daiman444
Hello. I cannot figure out the problem of displaying pictures attached to ActionButtons. These pictures are displayed or not. how to do it correctly so that the pictures are guaranteed to be displayed?
 
This is what the interface looks like in QtDesigner:
 

Attachment not found



This is what it looks like after loading the configuration
 

Attachment not found



 

Please Log in to join the conversation.

More
4 years 9 months ago #230481 by cmorley
is this
../../../Рабочий стол/test/img/zoomplus.png
really the path name?

<normaloff>../../../Рабочий стол/test/img/zoomplus.png</normaloff>../../../Рабочий стол/test/img/zoomplus.png</iconset>

Please Log in to join the conversation.

More
4 years 9 months ago #230530 by daiman444
Greetings. relative path to image files: ./img. Full path to image files: /home/ddd/linuxcnc/configs/test/img/

Please Log in to join the conversation.

More
4 years 9 months ago #230531 by cmorley
Well it looks like something went wrong as thats a pretty odd looking path.
Try editing the file to the right path and see what happens.
Make a back up though

Please Log in to join the conversation.

More
4 years 9 months ago #230533 by daiman444
I attach an archive with a config. maybe someone will be able to suggest the right direction to find a solution to the problem

Please Log in to join the conversation.

More
4 years 9 months ago #230544 by hottabich
Open any file with F12. qss or create your resource and style files. Take a close look at how this is done in qt_axis.

Please Log in to join the conversation.

More
4 years 9 months ago #230545 by daiman444
Именно на примере qt_axis и пытаюсь разбираться. Скопировал кнопки которые не теряют картинки и переназначил на них действия и картинки. Вроде все запускается и не теряется

Please Log in to join the conversation.

Time to create page: 0.183 seconds
Powered by Kunena Forum