cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1137

Link: @CplusplusQt Embedded: @EMBCpp • No DM without prior permission • Behave friendly • No NSFW • No Spam • No unauthorized Bots • Don't advertise other groups

Subscribe to a channel

C++ & Qt

as some adverticement (some random example — imagine game Morimens where you can exchange their Rose strips to XXX-coin... people may start to farm.... because it may be used to exchange for cents or some video, etc... and initial "mining" money you have....)

just random isooteric example. best project is a project that you can use ! and it's easy as some btn-clicks and people will trust your coin, if you collapse the network, someone can grab your ass (partnerships are legalized for some taxes often this way)

Читать полностью…

C++ & Qt

pure p2p trading — still the same problem of trust of the transaction that's propagated into the network, same overhead over btc fee for transaction

best's to make hybrid-p2p with at least some centralized server-only-nodes (even btc's NOT reliable to node's pollution. eg 51%(edges). and I did not know there is some other api for contracts as in eth !)
+ no need to have full transaction-chain's to hold by "authority". it may be large... in p2p...

interesting how you'll manage to implement it. please, send some updates to chat about your progress !

Читать полностью…

C++ & Qt

sometimes we do chat. Sometimes ChatGPT gets confused.

Читать полностью…

C++ & Qt

If you're looking for idle chat, this is probably not the place.

Читать полностью…

C++ & Qt

I guess that depends. 😉

Читать полностью…

C++ & Qt

Welcome to the group, @Hurrybabe! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

just a showcase: the daw / media sequencer I've been building for some years, ossia score (https://ossia.io) with its Qt RHI shader pipeline finally running through QRhi in a webbrowser:

Читать полностью…

C++ & Qt

@Gencemiri [5515683351] banned.

Читать полностью…

C++ & Qt

Report sent⁣⁣⁣⁣

Читать полностью…

C++ & Qt

For members serious about growth, Alex Gonzalez is the mentor to follow. His crypto trading tips enabled me to realize $6,000 in profits this month.

Читать полностью…

C++ & Qt

I think the main thing is to not let it recalculate everything at 60 Hz (or worse)

Читать полностью…

C++ & Qt

i would like to hear some suggestions bout the "not letting the table view do something by itself on resize for all rows/columns"

Читать полностью…

C++ & Qt

but yea the scroll bar does not feel alright

Читать полностью…

C++ & Qt

so i managed to make this


log_view::log_view(log_model* lm)
: QTableView(nullptr) {
setModel(lm);
setAlternatingRowColors(true);
setSelectionMode(QAbstractItemView::SingleSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
setWordWrap(true);

verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
verticalHeader()->setDefaultSectionSize(24);

auto header = horizontalHeader();
// i gave up on dynamic columns, just eyeballed the default size and let the
// user change it god damn
header->setSectionResizeMode(0, QHeaderView::Interactive);
header->resizeSection(0, 140);
header->setSectionResizeMode(1, QHeaderView::Interactive);
header->resizeSection(1, 80);
header->setSectionResizeMode(2, QHeaderView::Interactive);
header->resizeSection(2, 73);
header->setSectionResizeMode(3, QHeaderView::Stretch);

connect(
header, &QHeaderView::sectionResized,
this, &log_view::on_section_resized
);

connect(
verticalScrollBar(), &QScrollBar::valueChanged,
this, &log_view::schedule_visible_row_resize
);

connect(
model(), &QAbstractItemModel::dataChanged, this,
[this](const QModelIndex& topLeft, const QModelIndex& bottomRight) {
if (topLeft.column() == 3) {
for (int r = topLeft.row(); r <= bottomRight.row(); ++r)
if (visualRect(model()->index(r, 0)).intersects(viewport()->rect()))
resizeRowToContents(r);
}
}
);

QMetaObject::invokeMethod(this, &log_view::schedule_visible_row_resize, Qt::QueuedConnection);
}

void log_view::on_section_resized(int logicalIndex, int oldSize, int newSize) {
if (logicalIndex == 3)
schedule_visible_row_resize();
}

void log_view::schedule_visible_row_resize() {
QMetaObject::invokeMethod(
this, &log_view::update_visible_row_heights,
Qt::QueuedConnection
);
}

void log_view::update_visible_row_heights() {
if (!model() || model()->rowCount() == 0)
return;

setUpdatesEnabled(false);

const int first = rowAt(0);
if (first < 0) {
setUpdatesEnabled(true);
return;
}

int last = rowAt(viewport()->height() - 1);
if (last < 0)
last = model()->rowCount() - 1;

for (int row = first; row <= last; ++row)
resizeRowToContents(row);

setUpdatesEnabled(true);
}

void log_view::resizeEvent(QResizeEvent* ev) {
setUpdatesEnabled(false); // importand to not let the table view do nothin by itlself
QTableView::resizeEvent(ev);
setUpdatesEnabled(true);
schedule_visible_row_resize();
}


the schedule_visible_row_resize was suggusted by grok, the part that makes invocation in queued fashion, as he says:
Qt’s standard “do it once, later” pattern

When the current event loop finishes processing all the resize/scroll/paint events that are already queued, then run this once

Читать полностью…

C++ & Qt

but the scrollbar wont cbe in correct scale

Читать полностью…

C++ & Qt

best to make it fun for people and so it's available for exchange for real money... well.... best's game's and porn and etc partnerships, some tokens, bonuses that can be earned in your currency

keyword is partnerships to my mind, there should be reason to use Suisse Wallet, there'are 5000 coins, some of them tend to shut-down after some spike in trading.... as their intention is... well.... trading only)

and keyword secure is that it's bound (IN DIFFERENT PLASES !)

and secure's not equal anonymous as it's not, people that want anonymous are seriously use only real transactions

so make it fun, i may wanna use it somewhere

Читать полностью…

C++ & Qt

Hi folks,
Our team at Suisse Wallet🇨🇭 is working on a non-custodial crypto wallet with atomic swaps, P2P trading, and QR payments. And right now, our main priority is Lightning Network integration.
We're looking for an experienced Product Manager (4+ years) who will be genuinely passionate about growing the project - using their own vision, experience, and understanding of what crypto wallet users are currently missing. Salaries around $170k-$290k + equity + benefits.
If you're interested in learning more details - would love to chat. Thanks! :)

Читать полностью…

C++ & Qt

I see last message about January, I am confused it is not possible that developers are not chatting then chat is 'dead' , and there is other place somewhere I do not know ))

Читать полностью…

C++ & Qt

I usually get good answers here relatively quickly.

Читать полностью…

C++ & Qt

Hi everyone, where are the most qt people dwell?

Читать полностью…

C++ & Qt

I want to ask something straight

What are the chances to get a job being proficient in QT as compared to being proficient in backend development in Java in the current job market especially in countries like India?

I am on the aisle deciding which edge to choose

Genuine help would be appreciated
Thank you reading

Читать полностью…

C++ & Qt

Welcome to the group, @Wincreato! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

@kay_triller03 [1426681789] banned.

Читать полностью…

C++ & Qt

@admin

Читать полностью…

C++ & Qt

Welcome to the group, @Gencemiri! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

maybe i am missing something

Читать полностью…

C++ & Qt

and this works with 10k messages well

Читать полностью…

C++ & Qt

and damn right it is faster

Читать полностью…

C++ & Qt

perhaps it doesn't have to be perfect either? Skipping some lines when resizing isn't that much of a problem perhaps?

Читать полностью…

C++ & Qt

also wondering what will happen if i will just be getting element in the vierwport and calling the resizeRowToContents

Читать полностью…
Subscribe to a channel