Solved PlaceholderText in QPalette error in Qt4.8.6: How to solve?
-
Re: Qt Creator problem after update 'PlaceholderText' in 'QPalette'
Hi, my problem arose few days ago, when I tried to compile my project (based on Qt 4.8.6): this is due to the embedded device for which I compiled that requires this Qt version. Since two days ago, all was OK: I don't understand how happened, but now when I try to compile, always the same error stops the building phase.
My OS is Linux (Ubuntu 16.04); I compiled directly in the same folder where the source files (.cpp, .h, .pro, .ui) are placed. Until a couple of days ago, no problem like this never arose.
I know PlaceHoldetText is not a member of QPalette and I never wrote or set something in my .ui file as the error told me. Thus I don't know how can be a possible solution.
Is there someone who could help me?
Thanks
Paolo -
Hi
What version of QtCreator are you using ? -
@mrjj QtCreator rel 4.2.0
-
PlaceholderText was added in Qt5. Since you open the ui with QtCreator compiled against Qt5 this property is added.
Don't open your Qt4 ui files with QtCreator but directly with the (Qt4) designer -
@Christian-Ehrlicher Thanks!