[Qt-interest] QDialog is blank
Malyushytsky, Alex
alex at wai.com
Tue Jun 7 04:22:34 CEST 2011
Mostly likely you don't have form.ui preprocessed by uic.exe
It looks like that you don't use qmake, which would invoke uic.exe on ui files automatically.
So check your "ui_form.h" - it should contain a valid c++ code.
If it does not - check how people invoke it with building tool you are using.
>>Also, I've seen examples that use ->exec() instead of ->show(), but
when I try that it says there is no such function.
exec() is a slot (function) available at QDialog which will open dialog in the modal mode.
Your Form is QWidget subclass, so you can't call exec for it.
Alex
>> Also, I've seen examples that use ->exec() instead of ->show(), but
when I try that it says there is no such function.
-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of David Doria
Sent: Monday, June 06, 2011 6:04 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] QDialog is blank
I am trying to make a simple example of QDialog. I tried this:
http://programmingexamples.net/index.php?title=Qt/Dialog but the
dialog that is opened does not have the buttons or label that I saw in
the Designer. I think it might be a problem with the Dialog()
constructor - would someone mind taking a quick look?
Also, I've seen examples that use ->exec() instead of ->show(), but
when I try that it says there is no such function.
Thanks,
David
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list