Questions tagged as 'qt'

2
answers

Show the contents of a QList

Hi, I've been working with the Qt library on C ++ for a while now and I'm getting the following problem: Given a class named "project.h" I define a list as follows QList<Capa*> datosCapas; . Following this, I proceed to load th...
asked by 29.06.2017 / 20:41
0
answers

Add interfaces ui to main window (python)

class MenuA(QMainWindow): def __init__(self): QMainWindow.__init__(self) uic.loadUi("Interfaces/MenuAdmi.ui",self) self.actionAgregar.triggered.connect(self.AgregarInvent) def AgregarInvent(self): AgregarI...
asked by 15.06.2017 / 02:40
0
answers

It does not work if I do not put the manual image because?

void MainWindow::on_tableView_clicked(const QModelIndex &index) { if(!index.isValid()){ return; } btnEdit->setEnabled(true); btnDelete->setEnabled(true); btnSave->setEnabled(true); btnImg->setEnable...
asked by 26.05.2017 / 12:57
1
answer

Particles using qml

I would like to know how I can make a particle system using qml . I hope you can help me. Thanks     
asked by 09.06.2017 / 18:56
2
answers

Why do not I get the values of the .ini file loaded in the corresponding layout?

Login::Login(QWidget *parent) : QWidget(parent) { qsettings=new QSettings(QString(":/config/config.ini"), QSettings::IniFormat); Login::setWindowModality(Qt::ApplicationModal); Login::setWindowIcon(QIcon(":/config/images/logos/login.png"));...
asked by 16.05.2017 / 18:38
1
answer

How can I do so after saving it as CSV I open the file automatically

void MainWindow::on_btnExcell_clicked() { QString done= ""; tableView->setModel(mModel); QString path=QFileDialog::getSaveFileName(NULL,"Convertir a CSV","file","CSV(*.csv)"); if(path.isEmpty())return; QFile file(path);...
asked by 15.05.2017 / 12:40
1
answer

Why do not they load the data from the table in the QLineEdit?

connect(tableView,SIGNAL (clicked()), this, SLOT(on_tableView_clicked(QModelIndex &index))); void MainWindow::on_tableView_clicked(QModelIndex &index) { if(!index.isValid()){ return; } QString id...
asked by 02.05.2017 / 12:12
1
answer

Why do not they load the data from the table in the QLineEdit?

connect(tableView,SIGNAL (clicked()), this, SLOT(on_tableView_clicked(QModelIndex &index))); void MainWindow::on_tableView_clicked(QModelIndex &index) { if(!index.isValid()){ return; } QString id...
asked by 02.05.2017 / 12:12
2
answers

Error reading with QDataStream

Hi, I'm using qdatastream to read binary data from a stream. Well the code that basically implements is the following: QFile *archivoStub; archivoStub = new QFile(); archivoStub->setFileName(QApplication::applicationFilePath()); archivoStub...
asked by 15.12.2016 / 19:43
1
answer

QTreeWidget contacts in C ++, with QT and XMPP

Hello, I'm trying to make a list of all my contacts in my account. To do this, I will show those that are connected and not. I rely on the XMPP chat communication protocol. The code is as follows: void MainWindow::rosterRecibido() { lo...
asked by 14.10.2016 / 18:11