Etiquetas

555 74HC04 74HC14 74HC165 74LS04 acentos ADC10 Amstrad archivo arduino aristóteles armbian array ass at backup base64 bash Basho bc beethoven Biblia blog bucle c c++ c++11 c++17 C005 cadena Carmina Burana casting CD4017 CD4040 Cine clases Colores connect Consolación a Helvia Consolación a Marcia Consolación a Polibio constante corsair CPC Cristal 32Khz css cursor mouse cut daemon date dead keys Debian directorio disco duro DS32kHz electricidad Electrónica ensamblador entryList epicureismo Estadística estoicismo felicidad ffmpeg filePath filosofia Filosofía firefox flac for fstab funcion Gargantúa gastronomía gilgamesh Ginott gmp gpt grep gtts Hobbes hotkeys html imagemagick inline Javascript kde kernel modulos latex ldr lib-notify Linux Literatura ludoteca macro mapa de bits Matroska mega Microsoft Word Milan Kundera mkvextract mkvinfo mount mp3 mplayer MSP430 msp430F5529 MSP432 Multimedia Musica oop orange_pi pato PIR PL9823 Platón poesía POO en C++ pulseaudio puntero PWM pygame pyqt python QAction qApp QApplication QByteArray QDialog Qdir QFile QFileDialog QImage qlabel QList QListWidget QMessagebox QMouseEvent qpainter QPalette QPixmap QProcess QRegularExpression QRegularExpressionMatchIterator QString QStringList Qt qt5 QToolbar quijote QVector qwidget R Rabelais ratón relé Resonador cerámico samba San Agustín screen Séneca signal slot smart smartctl sox srt static const stdarg.h subtítulos Symbian tar teléfonos móviles temperatura temperatura cpu Temporizador tesseract Timer timestamp Trigonometría tts tutorial uid unicode user USI va_arg va_end va_list va_start velocidad ventilador Voltaire wallpaper xboxdrv xinput xrandr Z80 zip

martes, junio 29, 2010

Main window en Symbian y en desktop

#ifdef Q_OS_SYMBIAN
    w.showFullScreen();
#else
   w.show();
#endif

Un qmessagebox con acentos

El siguiente ejemplo asume que tu editor utiliza utf8.

int ret = QMessageBox::question(this, QString::fromUtf8("Confirmación"),
    QString::fromUtf8("¿Desea borrar el formulario?"),
    QMessageBox::Yes|QMessageBox::No);

if (ret ==QMessageBox::Yes) {
    clearForm();
}

Relacionado:

QMessageBox en 3 lineas

QMessageBox con más de tres lineas 

domingo, junio 06, 2010

The Meaning of life 2

The miracle of birth. Part 2.

The second part, subtitled "The Third World", is set in Yorkshire. It depicts a Roman Catholic couple (Palin and Jones), who can no longer afford to feed their 63 children, a number that has arisen because their religion forbids birth control. They are forced to sell their many offspring for medical experiments. The skit culminates in the musical number "Every Sperm is Sacred". This satire on the Catholic Church's attitudes toward contraception and masturbation is followed by one on Protestants: Chapman plays the husband of the household next door, who lectures his wife on their church's tolerance toward having intercourse for fun, although his frustrated spouse (Idle) points out that they never do.



Every sperm is sacred
The song was released on the album Monty Python Sings and was nominated for a BAFTA Music Award for Best Original Song in a Film in 1983. Michael Palin and Terry Jones wrote the music and lyrics and performed the sketch, which is hailed as one of the Pythons' great sketches.

The song is a satire of Catholic teachings on reproduction which forbid masturbation and contraception by artificial means.

The lyric
DAD:
There are Jews in the world.
There are Buddhists.
There are Hindus and Mormons, and then
There are those that follow Mohammed, but
I've never been one of them.

I'm a Roman Catholic,
And have been since before I was born,
And the one thing they say about Catholics is:
They'll take you as soon as you're warm.

You don't have to be a six-footer.
You don't have to have a great brain.
You don't have to have any clothes on. You're
A Catholic the moment Dad came,

Because

Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite irate.

CHILDREN:
Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite irate.

GIRL:
Let the heathen spill theirs
On the dusty ground.
God shall make them pay for
Each sperm that can't be found.

CHILDREN:
Every sperm is wanted.
Every sperm is good.
Every sperm is needed
In your neighbourhood.

MUM:
Hindu, Taoist, Mormon,
Spill theirs just anywhere,
But God loves those who treat their
Semen with more care.

MEN:
Every sperm is sacred.
Every sperm is great.
WOMEN:
If a sperm is wasted,...
CHILDREN:
...God get quite irate.

PRIEST:
Every sperm is sacred.
BRIDE and GROOM:
Every sperm is good.
NANNIES:
Every sperm is needed...
CARDINALS:
...In your neighbourhood!

CHILDREN:
Every sperm is useful.
Every sperm is fine.
FUNERAL CORTEGE:
God needs everybody's.
MOURNER #1:
Mine!
MOURNER #2:
And mine!
CORPSE:
And mine!

NUN:
Let the Pagan spill theirs
O'er mountain, hill, and plain.
HOLY STATUES:
God shall strike them down for
Each sperm that's spilt in vain.

EVERYONE:
Every sperm is sacred.
Every sperm is good.
Every sperm is needed
In your neighbourhood.

Every sperm is sacred.
Every sperm is great.
If a sperm is wasted,
God gets quite iraaaaaate!

References
http://en.wikipedia.org/wiki/Monty_Python%27s_The_Meaning_of_Life
http://en.wikipedia.org/wiki/Every_Sperm_is_Sacred
http://www.lyricsdepot.com/monty-python/every-sperm-is-sacred.html