PDA

View Full Version : StyleSheet syntax checking



MarkoSan
29th June 2008, 23:57
How do I develop stylesheet syntax checking support like in designer? Does anyone has some guidelines/tips?

And If the syntax is wrong, my app crashes and I get following debug warning:
warning: Could not parse stylesheet of widget 04CA7970

Now, is there any signal launched if syntax is not correct so I can connect it to my own handler, the docs do not provide such information?

jpn
30th June 2008, 05:51
How do I develop stylesheet syntax checking support like in designer? Does anyone has some guidelines/tips?
Why don't you check Qt Designer sources?



And If the syntax is wrong, my app crashes and I get following debug warning:[code]warning: Could not parse stylesheet of widget 04CA7970
You still have the QT_FATAL_WARNINGS=1 environment variable set.

MarkoSan
30th June 2008, 05:55
Well, I get crash wtih that warning nevertheless what the state of QT_FATAL_WARNINGS is...

MarkoSan
30th June 2008, 08:02
You'll need to restart Eclipse after adjusting environment variables.

I've restarted Eclipse and I still get crash. I've setup the project variable inside the eclipse project configuration window.

jpn
30th June 2008, 08:14
First of all, sorry for an accidental edit. I thought I pressed the Quote-button. Anyway, I was trying to answer that "you'll need to restart Eclipse after adjusting environment variables".


I've restarted Eclipse and I still get crash. I've setup the project variable inside the eclipse project configuration window.
Of course you know best. I presumed that you added the environment variable via Control Panel. In that case you would have to restart Eclipse for it to pick the new environment. But of course if you use Eclipse's own ways to pass environment variables to child processes, then you'll have to remove that setting. Use your common sense. :)

MarkoSan
30th June 2008, 10:09
Ok, but then the trick is if that variable IS DEFINED (value does not matter) or not. Sorry for inconvinience, but I did know that. I simply cannot know everything.