[Interest] Custom Style question

2014-09-07 Thread Rayner Pupo
Hi, I have been creating a custom style by inhering from QCommonStyle everything goes well but now I want to reduce the 20x20 size of the PE_IndicatorTabClose primitive, I tried by setting PM_TabCloseIndicatorWidth and PM_TabCloseIndicatorHeight to 8 but nothing happens. Visually it's not a tro

[Interest] efficient drawing advice

2014-03-26 Thread Rayner Pupo
maybe using shaders you can boost you representation I Conferencia Científica Internacional UCIENCIA 2014 en la UCI del 24 al 26 de abril de 2014, La Habana, Cuba. Ver http://uciencia.uci.cu _

[Interest] QVideoFrame and YUV question

2014-03-14 Thread Rayner Pupo
Hi, I'm trying to create a QImage from a QVideoFrame but my video has YUV420P format so converting it's not easy for me at all. By using a snippet from histogram class from the player example provided by Qt I was able to read each pixel on the frame but my question is: who can I decompose Y, Cb

Re: [Interest] Qt laptop stickers

2014-01-14 Thread Rayner Pupo
Tuukka: Can you send me some Qt stickers, I would be proud having the first Qt-fashion Laptop in Cuba. Zip code: 72 400 Here is my address: Camaguey, Cuba. Minas, Cristander street number 26. Thanks ___

[Interest] Custom QPushButton

2013-11-21 Thread Rayner Pupo
You can do whatever you want by subclassing QPushButton and reimplementing paintEvent function. using QStyleOptionButton you can draw the button exactly like a normal one but looking allways like normal state, just set the propper button feature for the styleOption

Re: [Interest] Interest Digest, Vol 26, Issue 62

2013-11-20 Thread Rayner Pupo
> Hi > I have a widget to which I want to apply a background image > I have done this by using a style sheet - > > background-image: url(:/TestLogo/ASL2014 EMU Landscape background.jpg); > background-position: top left; background-repeat: no-repeat; > > This is fine as far as it goes- > But when

[Interest] window flag question

2013-11-17 Thread Ing. Rayner Pupo Gomez
AFAIK you can't prevent other windows goes below one by using any window flag, this kind of behavior is implemented by Window Manager III Escuela Internacional de Invierno en la UCI del 17 al 28 de f

Re: [Interest] QProcess wrap the telnet.exe

2013-11-14 Thread Ing. Rayner Pupo Gomez
Try to merge the channels ( setProcessChannelMode(QProcess::MergedChannels) ) and temporary turn off writing: QProcess::closeWriteChannel() III Escuela Internacional de Invierno en la UCI del 17 al 2

[Interest] bad behavior using window flags

2013-11-08 Thread Ing. Rayner Pupo Gomez
Hello, I'm having some issues on setting window flags on a custom widget. I want to toggle in/out a widget from its parent using Qt::Window and Qt::Widget flags but it doesnt work on 100 percent of cases, sometimes (random actually) setting the Qt::Widget flag to restore the widget as its parent

[Interest] qss vs qstyle

2013-10-28 Thread Ing. Rayner Pupo Gomez
Flexible ---> QProxyStyle Easier to implement and maintain ---> Syle sheets Efficient ---> Depends on Proxy Style implementation III Escuela Internacional de Invierno en la UCI del 17 al 28 de feb

[Interest] Section ListWidget implementation

2013-10-16 Thread Ing. Rayner Pupo Gomez
Hi, is there any way to create a Qt ListWidget like the QML Section List example but using Widgets. Thanks. III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Ing. Rayner Pupo Gomez
You can try on Linux with "expect", creating a config file for expect that contains a command like "command >> output.txt" then you can start the expect program detached. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mai

Re: [Interest] How to set tooltip for close button in title bar

2013-06-11 Thread Ing. Rayner Pupo Gomez
You must create your own title bar and set it to a QDockWidget subclass, by using QStyleOption... you can build a title bar that looks like a real one plus custom tooltips for each button http://www.uci.cu___ Interest mailing list Interest@qt-project.

[Interest] using QMediaRecorder

2013-03-11 Thread Ing . Rayner Pupo Gómez
Dear All, I'm trying to use a QMediaRecorder to encode a local video but I can't get it work. I wonder if it's possible to do that, so far I create QMediaPlayer and set the video, then I create the QMediaRecorder with the player as media object, set the player play and the recorder record but n

Re: [Interest] Interest Digest, Vol 12, Issue 40

2012-09-14 Thread Rayner
If you want to keep file as a non member pointer in your ctor, then you must set a parent to avoid memory leaks: QFile *file = new QFile(this); By setting a parent, memory taken by the file pointer also is destroyed on its parent deletion 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS

Re: [Interest] Interest Digest, Vol 12, Issue 40

2012-09-14 Thread Rayner
I guest "file" may be available only in ctor scope, try to make "file" a member of FileParser 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.