PDA

View Full Version : QMenu Stylesheet Problem



Muneeb
12th March 2014, 19:15
Hi, I am new to Qt and got stuck in QMenu stylesheet, when I use QMenu:item{} it shows error
" 'item' is not a member of 'QMenu'."
Please help me, I know I am missing something very basic...

ChrisW67
12th March 2014, 21:51
Qt style sheets are not C++ code and it looks like you have fed it to the C++ compiler. Are you missing some double quotes?

Muneeb
13th March 2014, 19:06
Thanks Chris this might be the problem, I am using MinGW Compiler if I am not wrong its C++ compiler, please guide me which compiler should I use?

ChrisW67
13th March 2014, 21:35
You should be using a C++ compiler but the stylesheet text is not C++ code. If the style sheet text appears in the source code outside of a quoted string then that is your error. I am only guessing because I cannot see your actual code. If you cannot work it out post the area of code around where the error was reported and the exact text of the first error message(s).