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
I'd probably subclass the list widget and only render the visible portion of the list.
Читать полностью…
I think there may be ways to make the size estimation faster
Читать полностью…
Did you try running callgrind (or any other profiler) to reveal where the bootleneck is in?
Читать полностью…
the before and after. as you can see i get desired behaivour, the first long message row gets resized to fit the message well
Читать полностью…
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. :)
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. :)
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. :)
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. :)
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
Читать полностью…
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.
Uniform row heights is also good, but I suppose you want it to look as in the image above
Читать полностью…
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.
Читать полностью…
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
Читать полностью…
l have change resizeToContents and Stretch to FIxed and yes it is fast alright
Читать полностью…
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();
}
);
};
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. :)
https://treelinev1.devpost.com/ anyone wants to team up for this,dm....
Читать полностью…
It's been a while, I've managed to solve that, thanks anyway
Читать полностью…
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.”