template<typename Container, typename Index>
auto authAndAccess(Container&& c, Index i) {
return std::forward<Container>(c)[i];
}
template<typename Container, typename Index>
decltype(auto) authAndAccess(Container& c, Index i) {
return std::forward<Container>(c)[i];
}
Pix = new myPixItemX(pixmap);
Pix->setQImg_x (qImg);
scene->addItem(Pix);
connect(Pix, SIGNAL(pixel_data(int,int,int,int,int)),this , SLOT(color_pick(int,int,int,int,int)));
connect(Pix, &myPixItemX::pixel_data, this, &ImageViewer::color_pick);
class myPixItemX : public QObject, public QGraphicsPixmapItem
class myPixItemX : public QGraphicsPixmapItem
std::istream& operator>>(std::istream& stream, Sex &sex)
{
std::string s;
stream >> s;
if (s.compare("Male") == 0)
sex = Male;
else (s.compare("Female") == 0)
sex = Female;
else
sex = Unknown;
return stream;
}
tAbcs Abc =
{
{ { { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } } },
{ { { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } } },
{ { { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } },{ { 0, 0 },{ 0, 0 } } },
};
A::operator++(int) { //Постфиксный
A temp(*this);
*this+=1;
return temp;
}
if(isMouseEntered){
//рисуем круглую кнопку
}else{
//вызываем дефолтный рисовальщик или сами рисуем.
super.paintComponent(g);
}