Improve The Look Of QT Screen
-
Hello,
Im trying to make a few cosmetic changes to our system.
-
On the top bar of the mainwindow, right above the menu, it shows a default windows icon next to our company name, and I want to put in a custom icon there. I went under QT and looked at the mainwindow.ui. I found an area called "windows icon", but changing this has no impact on the icon at the top of the screen. Am I in the right place?
-
In other sofware I use, Im able to insert below the menu...in all the open area, an icon or something to give it a more professional look. Like a company logo, or something similar. Again, I can't find a way to do this either.
A few suggestions to point me in the right direction would be much appreciated.
Scott
-
-
Hi,
Qt Screen is pretty vague, what version of Qt are you using ? On what OS ?
-
I was able to find documentation on the getting a custom Icon to appear. It was accomplished by creating a resource file and referencing in within my project using RC_FILE = myapp.rc. My myapp.rc contains a line like (IDI_ICON1 ICON DISCARDABLE "myappico.ico") which points to the icon I want to use. This is working, however...I am running into problems when I try to change the myappico.ico from one icon to another. Even after rebuilding my app and recreating the executable, the new icon does not appear. Any thoughts on what I might be doing wrong?
Number 2 on my list above is still unresolved. I basically want to place a bitmap of a company logo it in the middle of the screen under my pull down menu to give it a more professional look. Im using windows 7 as my os and QT creator version 2.0.0.
-
Ok...I think I figured out the icon not updating when its changed. I've found that I must change the Rc file that points to the icon, then it seems to include it when I run qmake, and recompile.
So number 2 is still my problem child.
-
Can you show an example of what number 2 looks like ?
-
Not familar with this posting screen. How do I attach a bmp or jpg? I tried the picture button, but cant seem to see how to get to my file.
-
You have to have it somewhere online
-
Ok. Try looking at http://scottkrise.imgur.com. This is my first time using imgur...so let me know if you need anything else. I could email it to you if this doesnt work.
-
You can e.g. reimplement the paintEvent to draw your logo
-
Where and how would this be accomplished? Would this be done within QT, or in CPP? Do you have an example?
-
Have a look "here":http://qt-project.org/doc/qt-5/qwidget.html#custom-widgets-and-painting