Questions tagged as 'qt'

1
answer

Qt and Linux - QGraphicsItems with low performance

I'm having performance problems with the painting in Qt and the QGraphicsItems in Linux. It gets very "locked" when I add things to the painted (grillas and others). I put a qDebug in the paint to see which area is drawing: void...
asked by 13.06.2018 / 14:41
1
answer

how to show local web page?

How can I show a local web page? I already did something similar but showing a url, not a local web page (in this way I show the url page m_messageWidget->messageView->setHomepageUrl(QUrl(QString::fromUtf8("urlutilizada").arg(QCoreApplic...
asked by 28.07.2017 / 00:29
2
answers

What does Q_OBJECT do in Qt 5.x

When creating an application with QUI using the Wizard of Qt Creator it creates a class for the window, similar to this: #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> class MainWindow : public QMainWindow { Q_OBJ...
asked by 03.08.2017 / 15:59
1
answer

Help with Qt creator, does not allow to run projects?

I have installed the qt creator several times but it had never cost me as much as in my current pc; first I used the installer that I always had in my pendrive (the one of qt 5.8), it told me that I could not download certain repositories, I...
asked by 30.06.2017 / 05:23
1
answer

join Qlabel in a Qdialog

I have a question about how to connect a QLabel in a QDialog . The idea is to be able to open a QDialog before running the program. I leave part of the code: QDialog jjj; QLabel *logojjj; logojjj->setPixmap(QPi...
asked by 25.07.2017 / 20:52
1
answer

I try to click on the header to order that column of elements, but I can not detect the signal. Does anyone know how to fix it?

connect(tableView->horizontalHeader(), SIGNAL(clicked(int)), this, SLOT(ordenar(int))); in the header declared private slots: void ordenar(int logicalIndex); void MainWindow::ordenar(int logicalIndex ) { QString id;...
asked by 12.05.2017 / 08:58
1
answer

QMessageBox close automatically

Please, can someone help me by saying how I can do to generate a QMessageBox that closes automatically after x seconds without pressing any button. I leave an example of the code that I have QMessageBox Logo; Logo.setIconPixmap(QPixmap(...
asked by 26.07.2017 / 18:49
1
answer

Help with QT designer and PyQt5 with the uic module

I have a problem trying to develop a GUI with PyQt5 and QT desginer. I want to use the uic module, I have a .ui file called registro.ui , and another login.ui , how can I call from login.ui to window registro.ui...
asked by 20.04.2017 / 06:57
1
answer

Put icon in window Qt5

I start to learn Qt and one of the errors that I have not been able to solve is placing an icon in my program's window. I have the following example: #include <QApplication> #include <QWidget> #include <QIcon> int main(in...
asked by 09.04.2017 / 07:12
1
answer

Doubt about signal and slots in QT

Hi, I'm starting to program QT in order to learn as much as possible but I have a question. I know that with a signal you can connect them to many slots. (Example multiple actions or move different progress bars). But what is not is when one of...
asked by 05.10.2016 / 19:51