Ahh, thank you, that was most informative. So, basically, don't use
QSqlTableModel/QSqlRelationalTableModel etc, and I should be fine. Would you
say a good approach would be "writing my own" based on the lower-level
QAbstractTableModel, and populating it with QSqlQueries? It seems that could
You need an architect level person to design your application.
This is one of the far too numerous reasons AGILE is a false
methodology. Developing even a simple application without a SAG
(Systems Architecture Guide) opens an 8-lane highway for problems
like
Ok, so as a test, I threw together a basic project, consisting of just the
default main window and boiler plate code created by Qt creator. I then
modified main.cpp to be the following:
#include "mainwindow.h"
#include
#include
bool setupTestConnection(){
QSqlDatabase
You opened the database in main. The function you called is so
small it most likely was placed in-line by the compiler. This
would be especially true if you did nothing with dbOpen.
You have no reason to open it there. Again, read the fine manual.
I think you can use the following for this. I’m using a similar approach in my
apps, and I have not run into any issues yet.
QSqlDatabase::addDatabase keeps the connection open If you do not explicitly
close it. But in order to actually commit any transactions you have to call
Ok, maybe you can give me a pointer on what I'm doing wrong then. My code is
structured like the following:
bool openDatabase(){
QSqlDatabase db=QSqlDatabase::addDatabase('QSQLITE');
db.setDatabaseName();
return db.open();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
...
Why are you creating yet another class instead of properly
structuring your application?
Take a gander at
http://www.logikalsolutions.com/wordpress/information-technology/qt-and-usb-pt-4/
for some ideas. You probably also want to find a copy of this
book
Ok, yeah, that could work. Then I'd simply have a member that is the original
class, and call it for the data processing once I have verified connection
state. Sounds like a plan, I'll give it a shot!
---
Israel Brewster
Systems Analyst II
5245 Airport
I suggest you do not subclass any of those Qt classes, but instead create a new
class that derives from QObject with the signals, slots and methods that you
need. Those methods could even have the same names as those of QSqlQuery, for
example.
One of the methods of that class could be to set
> I recently had success installing Qt 5.9.2 in a Windows docker
> container using this link as a starting point:
> https://stackoverflow.com/a/34032216/991000
You can also see this approach in action here:
http://code.qt.io/cgit/qbs/qbs.git/tree/docker/stretch/Dockerfile
But pulling packages
I have an application that may be left running for extended periods of time. It
uses a SQLite database via QSqlDatabase and various other QtSQL classes
(QSQLTableModel, QSqlQuery, etc, depending on where in the program it is used).
The problem is that once I call open() on the database, it
I have an app that I want to be full-screen and close. It's a Window and a
Rectangle. Somewhere along the line I googled and found:
flags: Qt.FramelessWindowHint
should be added to the root window. However when also using the back button, no
back is received by the window or the rectangle
On Tuesday, 21 August 2018 07:39:19 PDT Michael Jackson wrote:
> I’m a bit new to Docker but this will end up being a Qt question. I have
> been trying to figure out how to install Qt 5.11.1 into a Docker container
> based on Ubuntu 18.04. The first obvious way was to download the Qt
> installer
I actually use the --script in one of our "Superbuild" projects that is driven
by CMake. The important bit is that when those scripts are run (macOS, Linux
and Windows) there is *always* a GUI environment running. In a Docker container
there is no GUI environment to run so the --script will not
Hi,
I recently had success installing Qt 5.9.2 in a Windows docker
container using this link as a starting point:
https://stackoverflow.com/a/34032216/991000
I am on my way home at the moment, but if you do not get right I can
try to assist some more tomorrow.
Regards,
Carel
On Tue, Aug 21,
I’m a bit new to Docker but this will end up being a Qt question. I have been
trying to figure out how to install Qt 5.11.1 into a Docker container based on
Ubuntu 18.04. The first obvious way was to download the Qt installer and try
running that until one realizes that the installer requires a
On 08/21/2018 01:54 PM, Andy wrote:
> Thank you so much Paul!
>
> That gives me something to start working on/pick apart. I see now how
> onscreen vs. offscreen works and can concentrate on getting the
> onscreen working the way I want first since they are very similar.
>
> 1) "I assume you want
Thank you so much Paul!
That gives me something to start working on/pick apart. I see now how
onscreen vs. offscreen works and can concentrate on getting the onscreen
working the way I want first since they are very similar.
1) "I assume you want to fill the depth buffer with a simple shader
18 matches
Mail list logo