[PATCH 3/3] Add a slot to mainwindow but amend to use Q_SLOTS

Dirk Hohndel dirk at hohndel.org
Tue Apr 9 10:13:38 PDT 2013


Thiago Macieira <thiago at macieira.org> writes:

> On terça-feira, 9 de abril de 2013 06.53.20, Dirk Hohndel wrote:
>> > +void MainWindow::on_actionNew_triggered()
>> > +{
>> > +    qDebug() << "actionNew";
>> > +}
>> > +
>> 
>> By the way: this is a part of C++ syntax that I really dislike... the
>> whole streams thing is just ugly.
>
> qDebug("actionNew") also works.
>
> And qDebug() supports printf-style formatting.

BTW: where does qDebug write to on Windows? One of the things that are
driving me bonkers on Windows is that we don't get to see stderr
(without some weird manual steps to reclassify the executable)...

/D


More information about the subsurface mailing list