Questions tagged as 'qt'

1
answer

Qt Tree View with Checboxes

I modified the example of the Qt website: EditableTreeModel Example so that in the tree view I get CheckBoxes next to each Item. But ... How can I make them dependent on each other? That is, if the parent's ChechBox is selected automatica...
asked by 21.11.2018 / 15:03
1
answer

doubt about dereference of iterators, c ++

In my program I have created a linked list and I want to go through it with an iterator and in a position x modify a value in the list. I've been searching the internet and I've seen several examples but none of them work for me, I think there's...
asked by 04.10.2018 / 15:47
2
answers

Singleton example in C ++ apply to QT

Hi, I want to apply this program that is done in c ++ to QT since I do it in another way but it seems not to be the correct one. What I usually do when I use this method, the singleton method, what I do is create a static object but what you hav...
asked by 22.10.2016 / 02:09
1
answer

Use object class type from GUI,

I'm creating a very simple program with C ++, using the IDE QT creator and I have a question I have a Person class, with two attributes #ifndef PERSONA_H #define PERSONA_H #include <iostream> using namespace std; class Persona { publ...
asked by 24.09.2018 / 15:22
1
answer

Save the text of a text box in a string

I am doing a program in QT in order to create a form and be able to save the information in a document. I have created my View for the form (where the user will enter the name), but now I do not know how to save what is written there in a String...
asked by 04.10.2018 / 14:56
1
answer

Get the color of a QT LCD Number

To insert the color in one of my LCD Number I simply use the instruction: this->ui->lcdNumber_23->setPalette(Qt::red); But I can not find how to get the current color of an LCD Number, I tried to get the palette but I can not find...
asked by 24.05.2018 / 23:08
1
answer

Warning: shadow a member of this

I have the following problem. I need to remove all warnings from a source and there is one (I have it in several sources) that says the following, I'm using linux and cmake: /mnt/clas/Source/CLAS/lashandle.h: In constructor ‘LAS_HeaderSectionV...
asked by 20.02.2017 / 16:05
1
answer

Why does not this code work in Qt? creating rule in registry

Hi, I'm creating a rule in the registry using c ++ with QT and the windows function for it incorporates the following libraries: #include <iostream> #include <windows.h> #include <conio.h> Then I create the rule using the...
asked by 04.02.2017 / 00:26
1
answer

Interface for "save as" window in qt-Creator

Does anyone know the way that, given a button in QT, that I assign to save something and, when pressed, I am displayed a window of save as ? That is, that window that opens when we download something and asks us where we want to store it....
asked by 10.12.2016 / 03:10
1
answer

set_where_condition in Comboboxdelegate with selected value in another comboboxdelegate

I have two comboboxdelegates . BlGenericComboBoxDelegate *cbd_id_tipo_tubo = new BlGenericComboBoxDelegate(mainCompany(), this); cbd_id_tipo_tubo->set_foreign_table("presu.tipo_tubo", "id", "tipo"); cbd_id_tipo_tubo->set_f...
asked by 11.12.2018 / 11:47