cplusplusqt | Unsorted

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

1220

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

Are you using, by any chance, any call to view->setIndexWidget()? This implies a huge performance penalty. Also, if you can move to QML, it reuses delegates and has no calls to paint(), which is quite likely to be executed in CPU instead of GPU.

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

C++ & Qt

no I did not. i guess the table resize entire table at once. if i will manage to run profiler i will get back to you

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

C++ & Qt

l have change resizeToContents and Stretch to FIxed and yes it is fast alright

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

C++ & Qt

so, what can I do regarding the performance????

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

C++ & Qt

i have this log_view inherited from table view that uses custom table model to show logs. i want the logs to have 4 columns: timestamp, level, service, message. first 3 columns should be sized to fit, fotrh should stretch to the widget end and use word wrap. i have accomplished there requirements with



log_view::log_view(log_model* lm) {
setModel(lm);
setAlternatingRowColors(true);
setSelectionMode(QAbstractItemView::SelectionMode::SingleSelection);
setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
verticalHeader()->setSectionResizeMode(QHeaderView::ResizeMode::ResizeToContents);

auto header = horizontalHeader();

header->setSectionResizeMode(0, QHeaderView::ResizeMode::ResizeToContents);
header->setSectionResizeMode(1, QHeaderView::ResizeMode::ResizeToContents);
header->setSectionResizeMode(2, QHeaderView::ResizeMode::ResizeToContents);

header->setSectionResizeMode(3, QHeaderView::ResizeMode::Stretch);
setWordWrap(true);
connect(header, &QHeaderView::sectionResized, this,
[this](int logicalIndex, int /*oldSize*/, int /*newSize*/) {
if (logicalIndex == 3)
resizeRowsToContents();
}
);

};


but when log gets huge (perse 200+ lines, not that huge alright), it lags a lot and uses gui thread for 100% on resize. what is going on? how could i optimize it?

my main purpose is to get rid of the manually dragging the horizontal header to fit the level and timestamp width (their width does not change in general)

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

C++ & Qt

Report sent⁣⁣⁣⁣

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

C++ & Qt

The qmlls improvements sounds nice

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

C++ & Qt

@Rasmussen_Maja [8318401428] banned.

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

C++ & Qt

@admin

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

C++ & Qt

Welcome to the group, @hishamzidanx! :-)

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

https://treelinev1.devpost.com/ anyone wants to team up for this,dm....

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

C++ & Qt

It's been a while, I've managed to solve that, thanks anyway

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

C++ & Qt

Good explanation, thanks!

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

C++ & Qt

Qt’s maintainers have repeatedly clarified:

Qt is not an acronym and has no full form. It is a trademark with upper case 'Q' followed by a lower case 't'

The name was chosen to be short, distinctive, and pleasant-sounding - hence the pronunciation “cute.”

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

C++ & Qt

“Q” as a Prefix

One of Qt’s original creators, Haavard Nord, used the letter Q as a prefix in his internal class library before Qt existed.

When Qt was being developed at Trolltech (the original company behind Qt), they continued using Q as a naming convention.

That’s why many Qt classes start with Q (e.g., QObject, QWidget, QString).

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

C++ & Qt

I think there may be ways to make the size estimation faster

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

C++ & Qt

Did you try running callgrind (or any other profiler) to reveal where the bootleneck is in?

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

C++ & Qt

Is it faster if all columns have fixed with?

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

C++ & Qt

the before and after. as you can see i get desired behaivour, the first long message row gets resized to fit the message well

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

C++ & Qt

@GerdSimonsen [8367815543] banned.

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

C++ & Qt

@admin

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

C++ & Qt

Welcome to the group, @rickliu2000! :-)

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

Report sent⁣⁣⁣⁣

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

C++ & Qt

Welcome to the group, -! :-)

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

Welcome to the group, @imrandogan46! :-)

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

Welcome to the group, @Le_Burrito! :-)

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

Everything in 3d is calculated (mostly) as vec4, mat4. In html/qml it's not your concern but in custom -- should copy past some boilerplate-repetitive template code

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

C++ & Qt

If you have commercial Qt license, you can go for the LTS version Qt 6.8.5 or Qt 6.8.6.

If using open source pre-built libraries, then 6.9.4 and above.

These library versions support latest Android requirement: 16KB page size alignment: https://developer.android.com/guide/practices/page-sizes

For compatible NDK, JDK and Gradle versions, refer to the respective version's platform support page.

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

C++ & Qt

The “t” from Xt (X Toolkit)

Early versions of Qt were built on top of the Xt (X Toolkit Intrinsics) framework used in the X11 windowing system on Unix.

The “t” in Qt is commonly attributed to Toolkit, influenced by Xt.

So the name “Qt” loosely reflected:
- Q (their internal prefix)
- t (from Toolkit / Xt)

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

C++ & Qt

Welcome to the group, @hamid914! :-)

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. :)

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