How can I update a TableView after closing a Dialog?
Example:
main.ccp abre conexão com banco de dados
principal::principal(){
//..etc..//
model->setTable("nomeTabela");
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
m...
I'm trying to return a QString, which will be used as a URL and need to use '&' as a separator in the URL. However, when the character is placed in the QString, it breaks the URL and what should appear after the '&' does not appear.
re...
I'm trying with QT 5 + QML to create an application where after opening the file using fileDialog it returns a message by a QT signal.
The application opens using a QML and initiates a call to a SLOT in the class responsible. Th...
I would like to know how to validate the price on Qt, as follows:
Examples accepted: 10,00 / 100,00 / 1.000,00 = true
My code, (but is validating true: 10 / 100 )
bool ok;
QLocale::setDefault(QLocale(Q...
Hello,
I'm a beginner in qt, I did a C ++ course with QT in 2013 but I was not able to take the apprenticeship forward and now I'm taking over.
Now I'm trying to compile a simple project, I just create a new project in qt widget, it automaticall...
I'm trying to do two viewports in qt but I'm not getting success, here's the code below:
1. Method that makes the drawings on the screen:
void GLWidget::paintGL()
{
//Limpa buffer
//glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BI...
I'm having a lot of multiple definitions problems in QT. For common classes, and all classes in our library, the solution was to put the header and implementation in the same .hpp, and it worked. To be able to use the slots and signals, I made t...
I'm developing a project and would like to start separating things into smaller parts and also to be able to test those parts, so by researching I found something about using * .pri files to be able to make a chain of projects and subprojects, b...
The data is loaded into the table, so I change the data in the table, when I click the button to update, I get the data (even the changes) and save it to the variable, but it seems that when I enter the sql query nothing happens . I need to be ab...
Would you like to know how to communicate with the SQLite database on android using QSqlDatabase ?
I have done some tests and for desktop I can communicate with DB, but with android I am not able to make the same communication.