Questions tagged as 'qt'

1
answer

Why does not qobject_cast work in this class?

This is the class ... I think I do not omit anything important: class CambiaValorCommand : public QUndoCommand { public: CambiaValorCommand(const QModelIndex &indiceAntiguo, const QModelIndex &indiceNuevo, const QVariant &...
asked by 14.09.2017 / 13:39
1
answer

Display huge texture

Greetings, I am working on a program developed in C ++, using QT and GDAL. The program now is able to show textures but if these are larger than 16384x16384 pixels I get the following error:    GLI | GL ERROR - Function glTextureStorage2DE...
asked by 29.09.2017 / 11:33
1
answer

Make QT applications for 64 bits

I have a question, I am experimenting with Qt C ++ and I downloaded the Qt Creator from the recommended online installer. At first I did not install MinGW, so it was a delivery to configure the compiler, I gave up, I installed MinGW and the QTCr...
asked by 19.07.2017 / 21:08
1
answer

Change color to QPainterPath overlapping

I have a QPainterPath of a point path, which is the path of a machine. I draw that path with a QPainterPathStroke and up there all right. The problem is that this path could pass over itself, that is, overlap or maybe just touch it and in that c...
asked by 14.05.2018 / 02:59
1
answer

Problem to compile boost library in QT

Hi, I'm trying to use this library in a project in QT but I never recognize it. Basically I put these libraries: #include <boost/bind.hpp> Code of my project: QT += core QT -= gui CONFIG += C++11 QMAKE_CXXFLAGS = -std=c++11 TARGE...
asked by 05.11.2016 / 17:37
1
answer

Install qt with Visual Studio

I want to install qt with Visual Studio. I want to use msvc2013 version but I do not know which version of visual studio to download, please tell me which one is correct.     
asked by 26.09.2016 / 21:58
1
answer

Qt - Serial port on windows responds but on linux no!

I resort to you because I have a problem reading the serial port. It turns out that my demo runs correctly on windows but I do not get any kind of answer on linux. The device to which I connect is an antenna, to which you must send the command "...
asked by 07.11.2018 / 17:46
1
answer

how to use switch with an element of a string in qt?

What happens is that I am communicating by serial port and I receive a string (example a210223), but to sort the data in the interface I have to identify the initial letter and pass it by a switch to identify and display them. I divide th...
asked by 03.07.2018 / 18:09
1
answer

Problem when creating project Application / Qt Widgets Application

When I create that type of project I get the following error: Can not run compiler 'cl'. Maybe you forgot to setup the environment     
asked by 05.04.2018 / 07:31
1
answer

Error Qt: QSqlQuery :: value: not positioned on a valid record

My problem is that when executing the following code: void MainWindow::on_loginButton_clicked() { QString userName = ui->userLineEdit->text(); QString userPassword = ui->passwordLineEdit->text(); QSqlQuery q; q.exec("SELEC...
asked by 05.04.2018 / 20:01