[Interest] something wrong with QFont::setStretch

2013-08-08 Thread Guoqiang Jin
Hi All, When using QFont::setStretch, I found something very interesting. Everything is OK when the font size is small, i.e, the size of font is less than 64. When the size of font is greater than 64, the function QFont::setStretch is just like QFont::setLetterSpacing. My Qt version is 5.1.0,

Re: [Interest] qtsingleapplication problem compiling

2013-08-08 Thread 程梁
The QtSingleApplication is really useful for many applications. i wonder if we could move it to Qt's main source tree. Qt 5.1 added QLockFile class which could be used for QtSingleApplication. Qt Creator also did some changes to make it compile successfully. I think we could improve it now. Che

[Interest] QML: Optional Menus in MenuBar

2013-08-08 Thread Daiwei Li
Hi all, I would like to be able to include Menus in my ApplcationWindow's MenuBar based on the platform. e.g.: import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Window 2.0 ApplicationWindow { title: qsTr("Hello World") width: 640 height: 480 menuBar: MenuBa

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Bob Hood
On 8/8/2013 4:47 PM, Bob Hood wrote: > On 8/8/2013 4:09 PM, Thiago Macieira wrote: >> On quinta-feira, 8 de agosto de 2013 15:58:23, Bob Hood wrote: >>> /usr/local/qt/4.8.4/64_dll/include/QtHelp/qhelpenginecore.h:1:55: error: >>> ../../tools/assistant/lib/qhelpenginecore.h: No such file or director

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Bob Hood
On 8/8/2013 4:09 PM, Thiago Macieira wrote: > On quinta-feira, 8 de agosto de 2013 15:58:23, Bob Hood wrote: >> /usr/local/qt/4.8.4/64_dll/include/QtHelp/qhelpenginecore.h:1:55: error: >> ../../tools/assistant/lib/qhelpenginecore.h: No such file or directory > Looks like the Qt 4.8.4 installation f

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Thiago Macieira
On quinta-feira, 8 de agosto de 2013 15:58:23, Bob Hood wrote: > /usr/local/qt/4.8.4/64_dll/include/QtHelp/qhelpenginecore.h:1:55: error: > ../../tools/assistant/lib/qhelpenginecore.h: No such file or directory Looks like the Qt 4.8.4 installation failed. The forwarding header at include/QtHelp/q

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Bob Hood
On 8/8/2013 3:27 PM, Karl Ruetz wrote: > > I was able to get it to work by commenting line 25 from file > src/src/shared/qbs/src/lib/lib.pro > > # else: *g++*|*clang*|*icc*:QMAKE_CXXFLAGS += Werror > Thanks, Karl. Unfortunately, that modification didn't help. I'm still getting: In file include

Re: [Interest] QThread and QPixmap::grabWindow()

2013-08-08 Thread Alexander Syvak
It's done as following, the thread wrapper (the class holding the QThread object and the pointer to be moved into the thread-worker) connects the class to be moved into the worker-thread with the main thread slot 'make_screenshot(pointer to the class which emits the signal)'. The main thread slot p

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Karl Ruetz
I was able to get it to work by commenting line 25 from file src/src/shared/qbs/src/lib/lib.pro # else: *g++*|*clang*|*icc*:QMAKE_CXXFLAGS += Werror Karl On 2013-08-08 15:02, Bob Hood wrote: > I have to do some Qt development work with CentOS 6.4 and Qt 4.8.4. Out of > the box, CentOS 6.

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread André Pönitz
On Thu, Aug 08, 2013 at 03:02:14PM -0600, Bob Hood wrote: > I have to do some Qt development work with CentOS 6.4 and Qt 4.8.4. Out of > the box, CentOS 6.4 provides "gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)". > Attempting to install QtCreator 2.8.0 is a miserable failure because any > useful p

Re: [Interest] qtsingleapplication problem compiling

2013-08-08 Thread John Weeks
Thank you, Tomasz. That's a very generous offer. I will keep you in mind. On 08-Aug-2013, at 1:09 AM, Tomasz Olszak wrote: > 2013/8/8 Nils Jeisecke > On Wed, Aug 7, 2013 at 7:58 PM, John Weeks wrote: > > Hmmm... I have no idea what I'm doing here... > > > > I've never participated in an open-so

Re: [Interest] qtsingleapplication problem compiling

2013-08-08 Thread John Weeks
On 08-Aug-2013, at 12:51 AM, Nils Jeisecke wrote: > On Wed, Aug 7, 2013 at 7:58 PM, John Weeks wrote: >> Hmmm... I have no idea what I'm doing here... >> >> I've never participated in an open-source project, know nothing about git or >> gerrit. Is there something I can read to get going? > > P

[Interest] set background color for toolButton

2013-08-08 Thread Graham Labdon
Hi I am trying to set the background colour for a checkable QToolButton - 1. void test2::on_toolButton_clicked() 2. { 3.if (!ui.toolButton->isChecked()) 4.{ 5. ui.toolButton->setStyleSheet("background-color: green"); 6.} 7.else 8.{ 9. ui.toolButton->

Re: [Interest] qtsingleapplication problem compiling

2013-08-08 Thread Tomasz Olszak
2013/8/8 Nils Jeisecke > On Wed, Aug 7, 2013 at 7:58 PM, John Weeks wrote: > > Hmmm... I have no idea what I'm doing here... > > > > I've never participated in an open-source project, know nothing about > git or > > gerrit. Is there something I can read to get going? > John, I had to go through

Re: [Interest] [Qt5.1] Can I force a widget to fully show without giving back control to the event loop or use processEvents()?

2013-08-08 Thread Michel Rosien
> > Is there a way to fully show a (newly constructed) QWidget without giving > > back control to the event loop (or using processEvents) before continuing? > No. This is clear. Thank you :-) Regards, Michel On Wed, Aug 7, 2013 at 5:29 PM, Thiago Macieira wrote: > On quarta-feira, 7 de agosto