[Interest] qt-android: How to make QML application scaled on high DPI screen automatically

2014-03-01 Thread Yang Fan
Hi list, I'm writing a cross platform application with QML, all things go well except running on high DPI Android device, it seems that it doesn't auto scaled correctly, the elements look small on the high DPI screen while it looks good on iOS device. I have got the physical dots per inch, it is a

[Interest] Mac OS defines

2014-03-01 Thread Joshua Grauman
I've tried to google and find the proper defines to use for different Mac related operating systems. Does anyone know offhand which defines to use for which OSes (moving forward for Qt 5.2+)? Is this correct? Q_OS_MAC - Mac OSX and iOS Q_OS_MACX - Mac OSX Q_OS_OSX - Mac OSX (any difference wi

Re: [Interest] Row(Layout), use spacing as resize handle. How to do that?

2014-03-01 Thread Mark Gaiser
On Thu, Feb 27, 2014 at 12:37 PM, Saether Jan-Arve wrote: > First, I would consider using SplitView. > > If that's not an option, I'm curious why you want to use a layout, and which > of its features you want. Specifically, I'm curious to know what behavior you > expect when a handle is resized.

Re: [Interest] PDF to QByteArray

2014-03-01 Thread Marcelo Estanislau Geyer
Thanks for all the answers. My problem is really with the POCO library I'm using, I'll have to check that. The output of qDebug left me confused and in doubt, but I wrote this code confirmed that Qt code was correct from the beginning: QFile file("/home/marcelo/Documents/Test.pdf"); if (!file.op

[Interest] PDF to QByteArray

2014-03-01 Thread Marcelo Estanislau Geyer
It's possible load pdf file to QByteArray? The simple code below is not work: QFile file("/home/marcelo/Documents/test.pdf"); if (!file.open(QIODevice::ReadOnly)) {qDebug() << "file open error"; return;} QByteArray ba_pdf = file.readAll(); qDebug() << ba_pdf; file.close(); The output is

[Interest] qt-android: How can I debug into a shared library?

2014-03-01 Thread 见良
Hi all, I use qt5.2 android to develop android app, now I have an issue: I can debug into the source code of the main library but not for an extra library. For example, if I have an qt-andoird project named testAndroid and it use an extra shared library libExtra, I can debug into the sour

[Interest] Accellerated WebGL in Qt/WebKit?

2014-03-01 Thread Jori Liesenborgs
Hi everyone, I was wondering if someone knows how to avoid copying the view from a WebGL component to the CPU each time. On [1] it says to use a QGraphicsWebView with a QGLWidget viewport, but if I try this the result seems to be even slower than the more naive version. I've placed some very