- Posts: 44
- Thank you received: 0
Displaying pictures on buttons
4 years 9 months ago #230467
by daiman444
Displaying pictures on buttons was created 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:
This is what it looks like after loading the configuration
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.
4 years 9 months ago #230481
by cmorley
Replied by cmorley on topic Displaying pictures on buttons
is this
../../../Рабочий Ñтол/test/img/zoomplus.png
really the path name?
<normaloff>../../../Рабочий Ñтол/test/img/zoomplus.png</normaloff>../../../Рабочий Ñтол/test/img/zoomplus.png</iconset>
../../../Рабочий Ñтол/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.
4 years 9 months ago #230530
by daiman444
Replied by daiman444 on topic Displaying pictures on buttons
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.
4 years 9 months ago #230531
by cmorley
Replied by cmorley on topic Displaying pictures on buttons
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
Try editing the file to the right path and see what happens.
Make a back up though
Please Log in to join the conversation.
4 years 9 months ago #230533
by daiman444
Replied by daiman444 on topic Displaying pictures on buttons
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.
4 years 9 months ago #230544
by hottabich
Replied by hottabich on topic Displaying pictures on buttons
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.
4 years 9 months ago #230545
by daiman444
Replied by daiman444 on topic Displaying pictures on buttons
Именно на примере qt_axis и пытаюсь разбираться. Скопировал кнопки которые не теряют картинки и переназначил на них действия и картинки. Вроде все запускается и не теряется
Please Log in to join the conversation.
Time to create page: 0.183 seconds
