[Qt-creator] GUI-Suggestion

Andree Günther guenther at mpanrw.de
Fri Oct 16 16:01:51 CEST 2009


Andre Poenitz schrieb:
> On Wed, Oct 14, 2009 at 03:52:33PM +0200, Andree Günther wrote:
>   
>> Hello List,
>>
>> wouldnt it be a good Idea to create a slot by - lets say - 
>> double-clicking a button?
>>     
>
> Try the item in the context menu under the somewhat misleading name
> "Go to slot".
Thats pretty much exactly what i wanted - thank you.

I would suggest to select a default-Slot (ie Clicked() in case of the 
pushbutton) and set this
as default-behaviour for doubleclicks. I think thats what people expect, 
isn't it?


I think i found a Bug with this:

Creator doesnt remove the Metacall for the auto-generated Slot (for 
example "on_startButton_clicked") when
the slot (and the Button in my case) is removed. Therfore compilation fails:

undefined reference to `MainWindow::on_pushButton_clicked()'

Dont know how to fix this, because the "MainWindow::qt_metacall" is not 
part of "my" code and im not supposed
to twiddle with it, right?


BTW: Just a thought: When i change the pushButtons name to lets say: 
startButton - it would be a good idea
to automatically change all depending slotnames - ie. 
"on_pushButton_clicked".


Andre



________________________________________
Materialpruefungsamt Nordrhein-Westfalen 
Marsbruchstrasse 186
D-44287 Dortmund
Telefon: +49 (231) 4502-0
Telefax: +49 (231) 458549
E-mail: info at mpanrw.de
Internet: www.mpanrw.de
USt.-IdNr.: DE 124 728 648

Brandpruefzentrum Erwitte
Auf den Thraenen 2
D-59597 Erwitte

Telefon: +49 (2943) 897-0
Telefax: +49 (2943) 897-33



More information about the Qt-creator-old mailing list