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

Qt-interest Archive, September 2007
[eclipse integration] auto connect a ui::object signal to a class slot


Message 1 in thread

Hello.

Since I started using the Qt Eclipse Integration RC1, the UI wizard
started creating classes in a different way from how I used to work.
Say my dialog is named Dialog, I will have a class called Dialog for
me to put things in and a Ui::DialogClass class with an additional
private Ui::DialogClass ui member in my class Dialog.

SInce this can be ok (though weird) I can't anymore figure out how to
make Qt perform auto connection. Say I have a button called Button in
my dialog, I used to refer to it as QPushButton* Button and so it was
easy to make a slot called on_Button_clicked() in my Dialog class. But
now I have to refer to my Button as QPushButton* ui.Button so... what
name should I give to my slot for Qt to perform auto connection?

Thanks.

-- 
 [ signature omitted ] 

Message 2 in thread

Well. It seems that I forgot to put public slots before declaring the
slots in the class header.

I feel so stupid... -.-

-- 
 [ signature omitted ]