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...
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...
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?
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?
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).
"We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.
Bookmarks