[Interest] Qt5-android: fail to lauch qt5 program in android emulator

2013-12-29 Thread 见良
Hello everyone, I am recently doing some reseach about Qt5-android, For now I can't launch qt5 program in QtCreator 3.0 I have successfully built the latest qt5 source for android, I got the latest release branch source using git which is nearly the same as qt5.2 official release and I

[Interest] Widen down-arrow of QComboBox

2013-12-29 Thread Joshua Grauman
Hello all, I'm trying to get the down arrow of a QComboBox to be wider than the default. I've tried lots of different ideas and none are working as expected. I'm using the Fusion style and Qt5.2. If possible, I'd like to keep having the style draw everything and not have to redo all the painti

Re: [Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

2013-12-29 Thread George Tasopoulos
(This message will probably not appear in the right place in the thread) > >* Thanks for your reply. *> > > >* This makes sense. But in this case shouldn't font drawing also draw at the *> >* same size (i.e. 28 pixels high on Linux, 27 pixels high on Windows)? *> > Only if both computers have the

Re: [Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

2013-12-29 Thread Thiago Macieira
On domingo, 29 de dezembro de 2013 17:44:56, George Tasopoulos wrote: > Thanks for your reply. > > This makes sense. But in this case shouldn't font drawing also draw at the > same size (i.e. 28 pixels high on Linux, 27 pixels high on Windows)? Only if both computers have the same DPI for the scr

Re: [Interest] 4NT shell and qmake

2013-12-29 Thread Gisle Vanem
"Bob Hood" wrote: >> I edited my %QT_INSTALL_PREFIX\mkspecs\common\shell-win32.conf and >> replaced: >> QMAKE_DEL_FILE = del >> >> with: >> QMAKE_DEL_FILE = del /e /k >> >> This works fine. Thanks. > > > Thanks for that, Gisle. I can use my precious TCCLE (a.k.a., 4NT) ag

Re: [Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

2013-12-29 Thread George Tasopoulos
Thanks for your reply. This makes sense. But in this case shouldn't font drawing also draw at the same size (i.e. 28 pixels high on Linux, 27 pixels high on Windows)? -- Yours sincerely, George Tasopoulos On 29 December 2013 17:36, Christoph Feck wrote: > On Sunday 29 December 2013 18:16:29 G

Re: [Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

2013-12-29 Thread Christoph Feck
On Sunday 29 December 2013 18:16:29 George Tasopoulos wrote: > QFont font("Liberation Mono", 18, QFont::Normal, false); > QFontMetrics metrics(font); > int x = metrics.height(); > > On Windows x equals 27, which seems to be the correct value, but on > Linux it equals 28. The (pixel) height of the

Re: [Interest] 4NT shell and qmake

2013-12-29 Thread Bob Hood
On 12/29/2013 6:36 AM, Gisle Vanem wrote: > I edited my %QT_INSTALL_PREFIX\mkspecs\common\shell-win32.conf and > replaced: > QMAKE_DEL_FILE = del > > with: > QMAKE_DEL_FILE = del /e /k > > This works fine. Thanks. Thanks for that, Gisle. I can use my precious TCCLE (a.k.a.,

[Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

2013-12-29 Thread George Tasopoulos
Hello everyone, I'm using Qt5 in Linux (Mint 16) and Windows (7). In both cases it has been downloaded and installed from the Qt Project website (not the package manager). The following code produces different results on each system: QFont font("Liberation Mono", 18, QFont::Normal, false); QFontM

Re: [Interest] How to center the check box.

2013-12-29 Thread william.croc...@analog.com
>> >> My problem is that the check box is presented >> flush left in the column and I would like >> it to be centered. The closest I could find was >> Qt::TextAlignmentRole which didn't sound right >> or have any affect. >> >> Any help would be appreciated. >> > There is no easy way to make the ch

Re: [Interest] How to center the check box.

2013-12-29 Thread Andre Somers
william.croc...@analog.com schreef op 29-12-2013 15:25: > Gang: > > I have a QTableView which uses a custom > model based on QAbstractItemModel. > The model sets the Qt::ItemIsUserCheckable flag > for one of the columns and the model data() > function responds to the Qt::CheckStateRole > for the sa

[Interest] How to center the check box.

2013-12-29 Thread william.croc...@analog.com
Gang: I have a QTableView which uses a custom model based on QAbstractItemModel. The model sets the Qt::ItemIsUserCheckable flag for one of the columns and the model data() function responds to the Qt::CheckStateRole for the same column. The result is a working check box in the corresponding colum

Re: [Interest] 4NT shell and qmake

2013-12-29 Thread Thiago Macieira
On domingo, 29 de dezembro de 2013 14:36:38, Gisle Vanem wrote: > I edited my %QT_INSTALL_PREFIX\mkspecs\common\shell-win32.conf and > replaced: > QMAKE_DEL_FILE = del > > with: > QMAKE_DEL_FILE = del /e /k > > This works fine. Thanks. > > Are the shell-win32.conf commands

Re: [Interest] 4NT shell and qmake

2013-12-29 Thread Gisle Vanem
"Thiago Macieira" wrote: > You can hack qmake or the mkspec so that it works. We need a command that > deletes a file if it exists or exits without error if it doesn't. The > equivalent of rm -f on Unix. I edited my %QT_INSTALL_PREFIX\mkspecs\common\shell-win32.conf and replaced: QMAKE_DEL_FIL

Re: [Interest] 4NT shell and qmake

2013-12-29 Thread Thiago Macieira
On domingo, 29 de dezembro de 2013 13:23:12, Gisle Vanem wrote: > I use 4NT 5.0 Unideo shell on Win-XP SP3. Please don't advice me to use the > inferior cmd shell You can hack qmake or the mkspec so that it works. We need a command that deletes a file if it exists or exits without error if it doe

[Interest] 4NT shell and qmake

2013-12-29 Thread Gisle Vanem
I just installed QtCreator 3.0.3 along with the latest Qt 5.2.0 SDK using the online installer. I loaded up one of the project in the QtCreator example-pane. The YouTubeView project. I found that the bug I reported for Qt4 [1+2] involving nmake (or jom?) trying a "del non-existant-file" is still

Re: [Interest] Font issues.

2013-12-29 Thread Cornelius Hald
Maybe related as well: https://bugreports.qt-project.org/browse/QTBUG-30851 On Sun, 2013-12-29 at 12:38 +0100, Cornelius Hald wrote: > Hi, > > I'm not sure it is the same issue, but I just remembered to ask > something similar some time ago. Didn't look into it any further, > though. > > http:/

Re: [Interest] Font issues.

2013-12-29 Thread Cornelius Hald
Hi, I'm not sure it is the same issue, but I just remembered to ask something similar some time ago. Didn't look into it any further, though. http://lists.qt-project.org/pipermail/interest/2013-November/009535.html Cheers, Conny On Sat, 2013-12-28 at 15:25 -0800, Joshua Kolden wrote: > I'm havi