Hi
You can try
setWindowOpacity();
https://doc.qt.io/qt-5/qwidget.html#windowOpacity-prop
with a PropertyAnimation
https://doc.qt.io/qt-5/qpropertyanimation.html
@ishi Visual Studio is of no interest here as you cannot use it to cross compile to ARM Linux as far as I know. If your app is using OpenCV you will either need to install it on your RPi (including the -dev package) and sync the sysroot, or cross-compile it.
@yijia
Maybe with different QLabel and QPixmap or QPicture
https://doc.qt.io/qt-5/qlabel.html#pixmap-prop
https://doc.qt.io/qt-5/qlabel.html#setPicture
@Alain38-0 said in QSqlDatabase and upgrade to Qt5.12:
Unfortunately with Qt5.12 nothing works. Because the database must be now in the same thread that the process using it.
I'm surprised it used to work at all. So far as I understood, it was always the case that database access had to be in same thread as where database created.
@Cute3d, yes, it finally works. Idk what was wrong. Example project:https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example
And due to god-knows-what reasons it doesn't work in debug mode. Hope, that project can help someone.
You could set default sorting column to -1 by QHeaderView::setSortIndicator like this
yourTableView->horizontalHeader()->setSortIndicator(-1, Qt::AscendingOrder);
before running
yourTableView->setSortingEnabled(true);
because QTableView::setSortingEnabled uses QHeaderView::sortIndicatorOrder and QHeaderView::sortIndicatorSection to identify by which column should model be sorted.
Note that documentation of QHeaderView::setSortIndicator tells that not all models support setting sort column to -1 and may even crash in this case.
@kshegunov yes that is exactly what I was wondering. I was not sure if plugins can be loaded into other C++ plugins or not. I will give this a shot.
@SGaist good point about creating a library. I think isolating the communication API into a dynamic library would be an even better solution as you suggested. I will have to do some refactoring.
Thank you both for sharing the quick and helpful response!
The answer in stackoverflow is correct.
Is there no other way to get notified when an Edit begins?
just declare and emit your custom signal in the delegate subclass
Remember 1 model can service multiple views so, normally, the model should not depend on the state of the view or delegate
Hi and welcome to devnet,
That's a question you should rather bring to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.