Image 01
profile-image

MortenSi

Morten Sickel Drí¸bak, Norway
Wallpaper Other
AnalogWidgets

Qt Widgets 29 comments

Score 73.1%
Feb 07 2014
I tried to compile it today using gcc 4.7.2 and Qt4 on debian. I got the error "bitmapbutton.cpp:49:24: error: taking address of temporary [-fpermissive]"
By changing line 49

p_icon = &icon();

to

{QIcon m_upicon=icon();
p_icon=&m_upicon;}

It compiles fine and the test/demo program runs. - Dec 21 2012