QWebPage crash
-
Then you might be using a wrong path for the resource. How does the qrc file look like ?
-
@<RCC>
<qresource prefix="/">
<file>valuta.png</file>
</qresource>
</RCC>
@ -
@this->setWindowIcon(QIcon(QPixmap(":/valuta.png")));@
You were missing the extension
-
Code works even without extension ;)
But if I set icon in form design mode the setting is not working. -
I'm not sure I'm following you there. When setting the icon in designer it doesn't work ? How do you set it ? Are you modifying it ?
-
Yes, when I set the window's icon in creator it doesn't work. I found property "windowIcon" in the right side and chose my icon in .png extension.
-
Okay, but it doesn't work when running from Qt Creator ?
-
Yes, after setting icon shows normal in creator, but during execution programm has standard icon.
-
That I understood, but my question is: are you running the application through Qt Creator ? Or from the explorer ?
-
I'm running application throught Qt Creator.
-
What's the path to the icon ?
-
Absolute or relative?
-
Which one of them are you using ?
-
I think that we have some misunderstanding ;)
How I can use icons path during setting windows icon in form design mode? In that mode I can only choose icon but not to set path. -
Arf, yes, misunderstanding :D
Are you using the icon from the resource or from a file ?
-
I'm using the icon from the resource file.
-
What version of Qt and Qt Creator ?
-
5.3
Maybe reinstallation will solve this problem? -
I don't think so.
Can you try with a minimal project e.g. the default from creating a New Project to see if it's still not working ?
-
I did like you said but nothing changed ;(