Message from C, C++ talks

July 2019

— Https://t.me/programminginc/82932

— #ot

— Https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ

— You can't do it in runtime also

— 

May be someone knows here.
How can I debug signals using vscode? It just doesn't stop on breakpoint if signal catched.
I am debugging it with lldb now but it's not much convenient.

— Hello, i'm writting a mail app and I have problem (of starter):

— // Loop over the bundle and display the FROM and SUBJECT of each.
int i = 0;
int numEmails = bundle->get_MessageCount();
while (i < numEmails) {
CkEmail *email = bundle->GetEmail(i);

MailButton *mail = new MailButton(this);
mail->setStyleSheet("border-radius: 5px; background-color: rgba(0, 0, 0, 0); margin-bottom: 1px;");
mail->setFixedHeight(70);
mail->setFixedWidth(ui->listView->width() - 12);

QVBoxLayout *mLayout = new QVBoxLayout;

std::cout « email->ck_from() « "\r\n";
QLabel *FROM = new QLabel;
FROM->setText(email->ck_from());
FROM->setStyleSheet("font-size: 15px; color: white; background: #00000000;");
FROM->setMargin(0);
FROM->setFixedHeight(30);

std::cout « email->subject() « "\r\n";
QLabel *SUBJECT = new QLabel;
SUBJECT->setText(email->subject());
SUBJECT->setStyleSheet("font-size: 14px; color: white; background: #00000000;");
SUBJECT->setMargin(0);
SUBJECT->setFixedHeight(20);

std::cout « "--" « "\r\n";

mLayout->addWidget(FROM);
mLayout->addWidget(SUBJECT);
mail->setLayout(mLayout);

QListWidgetItem *item = new QListWidgetItem;
item->setSizeHint(mail->sizeHint());

emit transfer(QString(email->body()));

connect(this, SIGNAL(transfer(QString)), mail, SLOT(handleMessage(QString)));
connect(mail, SIGNAL(Processed(QString)), this, SLOT(MessageFallBack(QString)));

ui->listView->addItem(item);
ui->listView->setItemWidget(item, mail);

delete email;
i = i + 1;

Message permanent page

— Mmmm qt

— I want to name each new MailButton with mail followed by the int i

— Don't paste code here - use pastebin or similar.

— Yes

— Ok, sorry

— Well it’s a small code snippet

— It's not even monospaced

— ?