Questions tagged as 'qt'

1
answer

How to make an .exe in linux and qt

Last mistake I get when doing make: I've already done the mxe root and the make thing but when doing the make it gives me this    make [1]: i686-w64-mingw32.static-g ++: The program was not found   Makefile.Release: 333: failure in the instru...
asked by 15.12.2016 / 03:42
1
answer

PyQt5 QNetworkAccesManager SSL error

I have a problem that I do not have with the solution, I am trying to access a site (https) using QNetworkAccesManager, I am Using PyQt5 (compiled by me) in Python 2.7.14 32Bit my code is this: from PyQt5.QtCore import QUrl, QCoreApplicatio...
asked by 06.04.2018 / 01:07
1
answer

JSON Reader does not work

I have this code: QProcess process; process.start("powershell -Command Invoke-WebRequest -Uri http://3ds.titlekeys.gq/json_enc -OutFile titles.json"); process.waitForFinished(); if (QFile::exists("titles.json")) { QString content;...
asked by 24.12.2017 / 19:20
1
answer

Capture Ctrl + Key in Qt

This is my scenario: A MainWindow with a single central widget that is a QTabWidget , plus its QToolBar . Each time I open a new document, an instance of a class that contains two QTabWidget and% QTableView is in...
asked by 10.11.2017 / 11:09
1
answer

QByteArray in 2 parts?

Good afternoon, I'm doing an exercise that involves Serial Port, send and receive a chain, when sending the chain all right, but when I receive it I get it in 2 parts, both devices have the same configuration. PuertoAP->setBaudRate(QSerialP...
asked by 05.10.2017 / 19:46
1
answer

Using tr ("...") in Qt

What is the difference when creating a QString of the Qt 5 framework when using tr("...") or not, for example: QString("texto"); QString(tr("texto")); What is the tr() good for?     
asked by 10.09.2017 / 16:16
1
answer

Create a .txt or another format from a listView, Save and load button

I have a small program where I add delete and look for elements in a listView, but now I would like to add a couple of buttons to save and load the listView in a text format or any other, so I can use it in later sessions even though I find vari...
asked by 07.08.2017 / 13:42
1
answer

Enter only numbers

I would like to know how I can in a QTextEdit allow only the entry of numbers, is there any property for it? PS: I need you not to write or enter the QTextEdit letters.     
asked by 01.08.2017 / 22:34
1
answer

tableView_clicked does not respect the order of the data

void MainWindow::on_**tableView_clicked**(const QModelIndex &index) { if(!index.isValid()){ return; } btnEdit->setEnabled(true); btnDelete->setEnabled(true); btnSave->setEnabled(true); btnImg->setEn...
asked by 30.05.2017 / 10:05
1
answer

How to scroll through a list and display the data by console in QT creator c ++

Good morning, I am creating the following method: void MainWindow::agregarProyecto(QString nombre, QString descripcion, QString directorio) { proyecto *unProyecto = new proyecto (nombre,descripcion,directorio); qDebug("Se va agregar el...
asked by 15.05.2017 / 16:12