Connecting signal to button
Hi,
I've got this strange warning on one of my ui forms :
'Warning : The project doesn't contain any class which uses this form!'
Very strange as it does, anybody had this error before?
All I am trying to do is connect a signal to a QPushButton!
Regards,
Steve
Re: Connecting signal to button
When do you get the error and how does your project file look like?
Re: Connecting signal to button
I get the error when I double click on my QPushButton on the form.
Project file is built within Visual Studio.net. I've never had this problem before?
Re: Connecting signal to button
You mean you get the warning while the application is running? Without seeing the .pro file we won't be able to help much.
Re: Connecting signal to button
I get the warning while I'm editing the form in visual studio.net.
Re: Connecting signal to button
Is it really an error ?? You say "Warning ...." :confused:
by the warning u must not be using the form anywhere... it is just defined,,,but not used...
am i right ??
1 Attachment(s)
A strange message: The project doesn't contain any class which uses this form!
Hello.
I work with QT 4.2 and Visual Studio 2005. Now there is a strange situation. I try to connect a signal to an element of a form and see the message: 'Warning. The project doesn't contain any class which uses this form!' (in attachment)
There was the same guestion some weeks ago... but without answer unfortunately :(
http://www.qtcentre.org/forum/f-qt-p...ton-10491.html
Sometimes the message disappears but more often I see it again when I'm trying to connect a signal. Hitherto I couldn't find any logic in its behaviour....
Re: Connecting signal to button
Quote:
Originally Posted by
steg90
I've got this strange warning on one of my ui forms :
'Warning : The project doesn't contain any class which uses this form!'
Very strange as it does, anybody had this error before?
All I am trying to do is connect a signal to a QPushButton!
Quote:
Originally Posted by
steg90
I get the error when I double click on my QPushButton on the form.
Hmm, you don't connect signals by double clicking. When you double click a child widget of a form the integration attempts to insert a slot stub with naming convention of automatic connections. Now, if there is no relevant class, or the integration is unable to detect where the form is being used, such error makes sense.
Re: Connecting signal to button
Quote:
I get the error when I double click on my QPushButton on the form.
Most likely the message appeared not only in case of double clicking. I got it when I tried to use functionality 'Connecting Signals & Slots'. It seems to me I found the reason of the mistake in my case. A namespace was used there.... in such way
Code:
namespace Space
{
{
private:
Ui::TNewDlgClass ui;
..........
Probably that's why the integration couldn't find relevant class.... I refused from using namespace and it works correctly now (at least I hope so :))