Why I can't use BinaryData in Drawable::createFromImageData(BinaryData::rewind_png, BinaryData::rewind_pngSize)

gui
#1

I want to create two toolbarButton, but this part code always goes wrong. It prompts that the BinaryData is not Class name or namespace name.


Does anyone konws why? Thank you very much.

0 Likes

#2

did you include the header file for BinaryData?

0 Likes

#3

Yes, i included the header “BinaryData.h” in my code.
But it pointed out that:Can’t open source file of “BinaryData.h”.

0 Likes

#4

Sounds like that’s your problem, is BinaryData.h in the same folder on disk as the file your trying to include BinaryData.h from? if not when you include it are you making sure you have the path right? or have you added the right header search paths if necessary?

0 Likes

#5

Ok, maybe that’s the point. Thank you very much.
What I really want is making the toolbaButton presents with only text, and tnen it can open a new window or subcomponent when i click it. Do you have any ideas?

0 Likes