On 27 December 2010 19:29, Giovanni Venturi wrote:
> On Tuesday, December 28, 2010 01:01:26 am Steven Sroka wrote:
>> I've got a problem with a program of mine because it always looks for
>> slots in the superclass (KDialogButtonBox) only and not also in the
>> derived c
On Tuesday, December 28, 2010 01:01:26 am Steven Sroka wrote:
> I've got a problem with a program of mine because it always looks for
> slots in the superclass (KDialogButtonBox) only and not also in the
> derived class.
>
When you derive the class you need to add Q_OBJECT after
A Dimarts, 28 de desembre de 2010, Steven Sroka va escriure:
> I've got a problem with a program of mine because it always looks for
> slots in the superclass (KDialogButtonBox) only and not also in the
> derived class.
>
> I've created my slot in my subclass, but whe
I've got a problem with a program of mine because it always looks for
slots in the superclass (KDialogButtonBox) only and not also in the
derived class.
I've created my slot in my subclass, but when my program gets to this line:
connect(nextButton, SIGNAL(clicked()), this, SLOT(nex
error: no matching function for call to
>> ‘KReminder::addButton(KGuiItem*&, QDialogButtonBox::ButtonRole,
> ----^
>>
>> -->candidates are:
>>
>> KPushButton* KDialogButtonBox::addButton(const KGuiItem&,
>
QDialogButtonBox::ButtonRole,
^
>
> -->candidates are:
>
> KPushButton* KDialogButtonBox::addButton(const KGuiItem&,
-^
Is your issue that the first parameter is a pointer which must be
on.
>
> Having the exact error message would probably be useful as well.
-->In member function ‘void KReminder::setupObjects()’:
-->error: no matching function for call to
‘KReminder::addButton(KGuiItem*&, QDialogButtonBox::ButtonRole,
KReminder* const, const char*)’
-->
On Thursday, December 23, 2010 18:55:35 Steven Sroka wrote:
> On 23 December 2010 18:10, Michael Pyne wrote:
> > On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote:
> >> 'this' refers to KReminder(). The 'addButton' function expects the
> >> third argument to be a QObject* and not a KRemin
On 23 December 2010 18:10, Michael Pyne wrote:
> On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote:
>> I need some help with a KDE program I'm trying to write.
>> I have my main function calling a custom class, KReminder(), which is
>> sub-classed from KD
On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote:
> I need some help with a KDE program I'm trying to write.
> I have my main function calling a custom class, KReminder(), which is
> sub-classed from KDialogButtonBox. Within the KReminder() I have:
>
> KPu
I need some help with a KDE program I'm trying to write.
I have my main function calling a custom class, KReminder(), which is
sub-classed from KDialogButtonBox. Within the KReminder() I have:
KPushButton *nextButton = addButton(nextGuiItem, AcceptRole, this,
SLOT(next()));
'this&
11 matches
Mail list logo