www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - QtE56: QFormBuilder: Error: undefined identifier `QFormBuilder`

reply Marcone <marcone email.com> writes:
I'm trying to load a .ui GUI designed in Qt Designer. I'm 
following the examples in the links below, but the following 
error occurs: Error: undefined identifier QFormBuilder

QFormBuilder qfb = new QFormBuilder(this);
setQtObj((qfb.load(":/fQtE56help.ui")).QtObj);

* https://github.com/MGWL/QtE5/

* https://github.com/MGWL/QtE5/wiki

* https://github.com/MGWL/QtE5/wiki

* https://www.youtube.com/watch?v=TFN5P4eoS_o

Could anyone help me to solve the problem? I would like to design 
my GUI in Qt Designer, and load the .ui to create my program.
Apr 27 2022
parent reply MGW <mgw yandex.ru> writes:
On Thursday, 28 April 2022 at 01:25:57 UTC, Marcone wrote:
 I'm trying to load a .ui GUI designed in Qt Designer. I'm 
 following the examples in the links below, but the following 
 error occurs: Error: undefined identifier QFormBuilder
Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: mgw yandex.ru
Apr 27 2022
next sibling parent reply Marcone <marcone email.com> writes:
On Thursday, 28 April 2022 at 06:58:12 UTC, MGW wrote:
 On Thursday, 28 April 2022 at 01:25:57 UTC, Marcone wrote:
 I'm trying to load a .ui GUI designed in Qt Designer. I'm 
 following the examples in the links below, but the following 
 error occurs: Error: undefined identifier QFormBuilder
Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: mgw yandex.ru
Hi, I didn't compile it as Qt is too big for me to download just to use qmake to create these dlls. Could you please help all of us by making these dlls compiled for Windows x64 available? Thank you very much. I sent you an email. Could you answer me and send me these dlls for Windows x64? Thanks.
Apr 28 2022
parent Mike Parker <aldacron gmail.com> writes:
On Thursday, 28 April 2022 at 07:28:26 UTC, Marcone wrote:
 On Thursday, 28 April 2022 at 06:58:12 UTC, MGW wrote:
 On Thursday, 28 April 2022 at 01:25:57 UTC, Marcone wrote:
 I'm trying to load a .ui GUI designed in Qt Designer. I'm 
 following the examples in the links below, but the following 
 error occurs: Error: undefined identifier QFormBuilder
Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: mgw yandex.ru
Hi, I didn't compile it as Qt is too big for me to download just to use qmake to create these dlls. Could you please help all of us by making these dlls compiled for Windows x64 available? Thank you very much. I sent you an email. Could you answer me and send me these dlls for Windows x64? Thanks.
Please. There's no need to carry on the exact same conversation in two threads. Just do it here. Thanks!
Apr 28 2022
prev sibling parent reply Marcone <marcone email.com> writes:
On Thursday, 28 April 2022 at 06:58:12 UTC, MGW wrote:
 On Thursday, 28 April 2022 at 01:25:57 UTC, Marcone wrote:
 I'm trying to load a .ui GUI designed in Qt Designer. I'm 
 following the examples in the links below, but the following 
 error occurs: Error: undefined identifier QFormBuilder
Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: mgw yandex.ru
Now is working very well. But, how can I reference a widget using .ui? connects("MyButton", "clicked()", botao_acao, "Slot_AN()"); How can I reference "MyButton"????
Apr 28 2022
parent reply Marcone <marcone email.com> writes:
On Friday, 29 April 2022 at 03:08:29 UTC, Marcone wrote:
 Now is working very well. But, how can I reference a widget 
 using .ui?

 connects("MyButton", "clicked()", botao_acao, "Slot_AN()");

 How can I reference "MyButton"????
Work with this code very well. connects(findChild("MyButton"), "clicked()", new QAction(this, &start, aThis), "Slot_AN()");
Apr 28 2022
parent Marcone <marcone email.com> writes:
Even having made it work, it was a lot of work for nothing. Using 
.ui I can't even change the text of a label because I don't know 
how to reference a widget within the D code.

I was able to reference pushButton "MyButton" using findChild in 
connects, but findChild doesn't work to modify some widget 
property like changing text using setText.

connects(findChild("MyButton"), "clicked()", new QAction(this, 
&start, aThis), "Slot_AN()");

Could someone help me, and thus help a lot of people who I know 
will go through this forum when they need help?
Apr 28 2022