« first day (4362 days earlier)      last day (572 days later) » 

9:28 AM
istream image display in pixmap in c++?????????

std::istream *blobData;

res = stmt->executeQuery("select `ImagesBitMap` from bitmapImagesTable where `ID`='"+boost::lexical_cast<std::string>(counter)+"'order by `ID` DESC");
while(res->last()){
blobData = res->getBlob("ImagesBitMap");
break;
}



How to load istream *blobData in QPixmap and display it graphicsView_2
QPixmap p;
p.load(image);
if(!widget.graphicsView_2->scene()){
QGraphicsScene *scene = new QGraphicsScene(this);
widget.graphicsView_2->setScene(scene);
 
 
2 hours later…
11:05 AM
Hello nerds
 
11:56 AM
chat seems to be a wee bit unstable
 
Just a wee bit
 
 
1 hour later…
1:26 PM
@Morwenn don't call us nerds. We just study more than usual.
 
Well, I don't :D
 
 
2 hours later…
3:52 PM
posted on September 25, 2022 by Herb Sutter

Brief background As I presented at CppCon 2021 starting at 11:15, I’m proposing is (a general type or value query) and as (a general cast, for only the safe casts) for C++ evolution. The talk, and the ISO C++ evolution paper P2392 it’s based on, explained why I hope that is and as can provide … Continue reading Something I implemented today: “is void” →

 
 
4 hours later…
7:32 PM
posted on September 25, 2022 by Blog Staff

Do you know about std::ssize()? Reducing Signed and Unsigned Mismatches with std::ssize() by Bartlomiej Filipek From the article: In this article, I’ll show another technique that avoids mixing signed and unsigned types. In my article Integer Conversions and Safe Comparisons in C++20 we learned about cmp_* integer comparison functions that

posted on September 25, 2022 by Blog Staff

Are you using concepts? Static, Dynamic Polymorphism, CRTP and C++20’s Concepts by Thomas Sedlmair From the article: Let's talk about Polymorphism, CRTP as a way to use static polymorphism and how C++20 can change the way how we write code...

 

« first day (4362 days earlier)      last day (572 days later) »