Questions tagged as 'qt'

1
answer

Error: Qt needs Xcode 5.0 on MacOS Sierra

I need to install Qt5 in MacOS Sierra (10.12.6), but when the installer is about to finish the message appears: I have version 9.0 of Xcode installed, but I read that Qt only needs the command line tools of this one. To install the comm...
asked by 27.09.2017 / 19:05
1
answer

Doubt with QTranslator

I create a small test interface consisting of two buttons, a table and a combobox to change the language. All without Designer. botonRedo = new QPushButton(QIcon("../Prueba/iconos/rehacer.png"),tr("Rehacer")); botonUndo = new QPushButton(QIcon...
asked by 25.09.2017 / 11:05
1
answer

Destroy objects QWidget of Qt

How should I destroy the Qt objects used to create the GUIs, for example the QPushButton , QLabel , etc., I should call delete manually or the framework manages the memory release. QPushButton *btn = new QPushButton("Butto...
asked by 10.09.2017 / 22:53
1
answer

I can not convert an answer to QJsonDocument

I have this problem when consulting the data of a webService basic in Qt . After making a request GET with QNetworkAccesManager and using the method readAll() of QNetworkReply , I am receiving this: a...
asked by 09.09.2017 / 16:10
1
answer

What's in it for QT_BEGIN_NAMESPACE and QT_END_NAMESPACE

Studying the examples included in Qt-5.9.1 I find the following code that I can not understand: QT_BEGIN_NAMESPACE class QAction; class QMenu; class QPlainTextEdit; class QSessionManager; QT_END_NAMESPACE class MainWindow : public QMainWindow...
asked by 22.08.2017 / 22:14
1
answer

How can I work a QT project that does not have the file to recognize the project?

I'm working with a QT project, but this one although in its cpp and .h files it has the libraries that it requires to work with QT like #include. You do not have the file to be able to import the entire project in QTCreator. I hope I have exp...
asked by 01.08.2017 / 02:46
0
answers

Using QUndoStack with several widgets

Imagine a Widget with two buttons Undo and Redo and two QTextEdit , called Editor1 and Editor2 We know that every QTextEdit has its method undo() and redo() So far all I see, and I am able to do, is that whe...
asked by 16.08.2017 / 12:03
0
answers

When compiling in Qt I have a "g ++" error

When compiling in Qt I get this error and can not execute.    Project ERROR: Can not run compiler 'g ++'. Maybe you forgot to setup the environment? 15:22:23: The process   "C: \ Qt \ 5.9.1 \ mingw53_32 \ bin \ qmake.exe" exited with code 3...
asked by 13.07.2017 / 17:17
1
answer

Driver qsql for ARM architecture

I have a problem which is that when compiling an application with toolchains to a Card with Yocto Linux I can not connect to the database since the qsqlite driver is not found on the card and there are no other drivers available, this is the err...
asked by 14.07.2017 / 01:26
0
answers

How to create borderless window in PySide?

I have the following code in PySide in Maya: import maya.cmds as cmds from PySide import QtCore, QtGui import maya.OpenMayaUI as mui import shiboken def getMayaWindow(): pointer = mui.MQtUtil.mainWindow() return shiboken.wrapInstance(...
asked by 27.06.2017 / 16:49