How can qtjambi access resources gracefully? #108
-
How can qtjambi access the resources directory of the maven project gracefully? I put the icon image in this directory and want to use QIcon to set the window icon. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I've tried it out. I'm using this method now: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
How perfect! Does this project have a chat group in Telegeram? I'm a novice programmer. I feel that if I raise issue here, some questions are low level. Is it not good. |
Beta Was this translation helpful? Give feedback.
-
No, there is no other chat group. I converted this thread to discussion because there is no issue. If you have further question just add it here or feel free to open a new Q&A item. Also low level questions might be intersting for others to benefit from the answers. |
Beta Was this translation helpful? Give feedback.
new QIcon(":/img/677.ico")
assuming directory
resources
is provided as java class path.