"what if i want to access the visibility or a property i have defined in the delegate?"
There are multiple instances of your delegate, corresponding to the part of the model being displayed. Which instance do you want the property from? If it's a common property that is not specific to a single instance, then the same answer applies - factor it out to the table level and use it in the delegate. If it is a property specific to a delegate instance you are interested in, how do you specify which delegate? Does the data actually belong to the model?
For highly specific platform API, you will have to write some platform specific code. Qt can't cover absolutely everything and it's not its goal.
Android is a bit of a special case because of its use of Java. You should take a look at the QtAndroidExtras module and its examples. Note that this is really specific to Android and how it works.
There are other extras modules for some often used platform specific stuff that you can take a look at in terms of how things can be done. Note that these modules have been deprecated for Qt 6 in favor of a different approach and integration in a more centralized way.
I can solve the problem. First, I created folder sqldrivers including libqsqlite.so in the app directory (e.x. /data/user/0/com.example.polarislib) and I set permission by chmod 777 to sqldrivers folder and libqsqlite.so file and finally I used the following code in my source where the connection to Sqlite is needed:
QMYSQL Driver not loaded. Available drivers: QMYSQL QSQLITE QMYSQL3
This gets asked so many times, here & elsewhere. Googling for your message will bring up many hits. Under Linux/Ubuntu it's usually libmysqlclient or libqt5sql5-mysql or similar which is missing/has dependencies missing/wrong version.
I think that the g++ version is what is doing it. The old version of rasbian
is using g++ v4.9.2. The new version of rasbian is using g++ v6.3.0-18+.
For the old compiler we had had to add an "INCLUDEPATH =
/usr/include" line into the .pro file to get everything picked up
properly. For the new compiler (and the change from #include to #include_next
in cstdlib) that messes up.
I'm removing the INCLUDEPATH, (which seems to have been included as -isystem
instead of -I) and that is fixing the problem.
I'll try out soon Samsung S8 plus Samsung DeX
Samsung DeX is connected to a HD Monitor via HDMI and apps running on S8 are automatically running on this external monitor as soon as S8 is placed into the DeX dock.
will my QtQuickControls2 APP run under this environment ?
will the change of DPI and size work ?