Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2007
Creating slots in qtdesigner (4.3)


Message 1 in thread

Hi all

I know this will sound stupid but i can't follow any tutorial which  
mentions the creation of slots for objects in qtdesigner. The  
question is: is it even possible to create slots *in* qtdesigner? If  
so, where? None of the options listed in any tutorial show up in  
designer's slot/signal editor. All i see is a list of connections and  
the slot column has a dropdown with all existing slots.

Thanks (i'm a complete newb)

Filipe

--
 [ signature omitted ] 

Message 2 in thread

On 02.07.07 15:51:58, Filipe Varela wrote:
> I know this will sound stupid but i can't follow any tutorial which mentions 
> the creation of slots for objects in qtdesigner. The question is: is it even 
> possible to create slots *in* qtdesigner? If so, where? None of the options 
> listed in any tutorial show up in designer's slot/signal editor. All i see is a 
> list of connections and the slot column has a dropdown with all existing slots.

You're obviously following Qt3 tutorials, those are outdated for Qt4 and
you shouldn't follow them as a newbie. Instead look at the designer
manual that comes with Qt4's documentation.

And to answer your question specifically: There's no way to create slots
in Qt4 designer, thats by design. You'll create slots in code in a class
subclassing from QWidget (as the generated code from the .ui file
doesn't do that either).

Andreas

-- 
 [ signature omitted ]