Re: [Interest] How to change QFont::StyleStrategy from QML?

2014-01-21 Thread Bo Thorsen
Den 20-01-2014 19:32, Alexander Ivash skrev: 2014/1/20 Bo Thorsen bthor...@ics.com mailto:bthor...@ics.com Den 19-01-2014 14:49, ElderOrb skrev: I have a font which is unfortunately rendered incorrectly unless QFont::StyleStrategy set to QFont::NoFontMerging. This font is

Re: [Interest] QtThread

2014-01-21 Thread Bo Thorsen
Den 20-01-2014 17:32, Thiago Macieira skrev: On segunda-feira, 20 de janeiro de 2014 12:41:33, Bo Thorsen wrote: I have just created a suggestion in the bug tracker to make it illegal to do moveToThread(this): https://bugreports.qt-project.org/browse/QTBUG-36278 It can't be said often

Re: [Interest] QtThread

2014-01-21 Thread George Tasopoulos
Would it even be possible to check for such a thing? moveToThread accepts a pointer to a QObject, and this pointer is passed by value. How could the function know whether this value was given to it as QObject* pObject or QObject* this? Does Qt have a way to check code before it's given to the

Re: [Interest] QtThread

2014-01-21 Thread Etienne Sandré-Chardonnal
I don't see what is complicated here? if( (QObject*)targetThread==(QObject*)this ) { qWarning(That's wrong'); return; } Etienne 2014/1/21 George Tasopoulos tasopoulos.yorg...@gmail.com Would it even be possible to check for such a thing? moveToThread accepts a pointer to a QObject,

[Interest] Qt Application Help.

2014-01-21 Thread Rahul Mathur
All, Newbie to Qt development and it's usages. Need some help to KICK START Qt usages. I am using Linux desktop platform. I have following futures to implement - 1. A GUI to accept some inputs through multiple buttons. 2. Above values should be taken either as INPUT or LIMIT set for any data or

Re: [Interest] Qt Application Help.

2014-01-21 Thread alexander golks
hi, you should read the qt documentation, which is very good: http://qt-project.org/doc/ and some tutorials, examples and demos, e.g. from here: http://qt-project.org/resources/getting_started and if you have any questions left someone here will surely help you. alex Start weitergeleitete

Re: [Interest] QtThread

2014-01-21 Thread George Tasopoulos
You're right. I've not read the docs in a while and remembered it wrong. --- Yours sincerely, George Tasopoulos On 21 Jan 2014 10:05, Etienne Sandré-Chardonnal etienne.san...@m4x.org wrote: I don't see what is complicated here? if( (QObject*)targetThread==(QObject*)this ) {

Re: [Interest] QtThread

2014-01-21 Thread Till Oliver Knoll
Am 21.01.2014 um 10:54 schrieb George Tasopoulos tasopoulos.yorg...@gmail.com: ... Does Qt have a way to check code before it's given to the compiler? In theory yes: the moc pre-processor does parse the code (but only for relevant classes). But I don't think that adding code validation to

Re: [Interest] QtThread

2014-01-21 Thread qt . dantec
Le Mon, 20 Jan 2014 08:32:28 -0800, Thiago Macieira thiago.macie...@intel.com écrivait: I'd rather not add a check for things you shouldn't do but that might still work nonetheless. That's wasted CPU cycles for people who did the right thing. Then only check it in debug mode : Programmer will

[Interest] Removal of GUIenabled constructor argument of QApplication in Qt5

2014-01-21 Thread Marc Schmitzer
Hi, I know I'm a little late to the party, but while trying to port our project to Qt5, I just discovered that the QApplication constructor that takes a bool GUIenabled argument has been removed. I cannot find any mention of this in the official change lists. This change is quite unfortunate for

Re: [Interest] Removal of GUIenabled constructor argument of QApplication in Qt5

2014-01-21 Thread Till Oliver Knoll
Am 21.01.2014 um 14:34 schrieb Marc Schmitzer marc.schmit...@richard-wolf.com: Hi, I just discovered that the QApplication constructor that takes a bool GUIenabled argument has been removed. I cannot find any mention of this in the official change lists. I would have expected an entry in

[Interest] Mouse cursor always resetted on mouse move

2014-01-21 Thread Cornelius Hald
Hi, I'm trying to set an application wide cursor for some time and later return to the default cursor. I've tried QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); and ApplicationWindow { [...] MouseArea { cursorShape: Qt.WaitCursor acceptedButtons: Qt.NoButton

[Interest] [qtquick] map global position to scene position

2014-01-21 Thread Tim Blechmann
hi all, is it possible to map a global position (as in QMouseEvent::globalPos()) to a scene position (as required by QQuickItem::mapFromScene)? i've tried to use the result of QQuickView::mapFromGlobal, but the result seems to be broken, as my QQuickView is embedded into a native Cocoa

Re: [Interest] Mouse cursor always resetted on mouse move

2014-01-21 Thread Frederik Gladhorn
Tirsdag 21. januar 2014 15.41.40 skrev Cornelius Hald: Hi, I'm trying to set an application wide cursor for some time and later return to the default cursor. I've tried QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); and ApplicationWindow { [...] MouseArea {

[Interest] QTableView column format

2014-01-21 Thread Muhammad Bashir Al-Noimi
Howdy, I'm using QTableView in very basic mode to view a QSqlTableModel but one of numeric column shows the numbers using 'e' factor while they should be in digits only '100' How can I change the format of specific column without subclassing QTableView? Can I change the format

Re: [Interest] QtThread

2014-01-21 Thread Thiago Macieira
On terça-feira, 21 de janeiro de 2014 10:43:34, Bo Thorsen wrote: This point I won't just take, though. moveToThread is not an operation that will be used often, so optimization is almost irrelevant. Well, I certainly hope that noone does moveToThread a lot moveToThread is not a virtual, so

Re: [Interest] Removal of GUIenabled constructor argument of QApplication in Qt5

2014-01-21 Thread Thiago Macieira
On terça-feira, 21 de janeiro de 2014 14:34:00, Marc Schmitzer wrote: Hi, I know I'm a little late to the party, but while trying to port our project to Qt5, I just discovered that the QApplication constructor that takes a bool GUIenabled argument has been removed. I cannot find any mention

Re: [Interest] QtThread

2014-01-21 Thread Constantin Makshin
There's no real need to use debug version of Qt if you don't want to debug Qt itself, so in most cases the programmer won't see that warning. On Jan 21, 2014 5:08 PM, qt.dan...@free.fr wrote: Le Mon, 20 Jan 2014 08:32:28 -0800, Thiago Macieira thiago.macie...@intel.com écrivait: I'd rather

[Interest] QGraphicsWidget and custom QToolTip

2014-01-21 Thread Petric Frank
Hello, i want to extend the QTooltip class to embed a dynamically created picture also. It is placed in a QPixmap instance (or alike) but not on disk. The idea is to derive QTootip (handling this picture) and pass it as tool tip in a QGraphicsWidget (or a derivation of it). But there is no

[Interest] Windows Process Duration

2014-01-21 Thread Jason Kretzer
Is there a Qt way of getting a handle for a running windows process(or just checking if a certain .exe is currently executing) and determining how long it has been running? -Jason - - - - - - - - - - - - - - - - - - - - - - - Jason R. Kretzer Application Developer Google # 606-887-9011 Cell #

[Interest] ASR + TTS

2014-01-21 Thread Adnan RIHAN
Hello everybody, I’m looking for an ASR (Speech recognition) + TTS (Text to speech) library, but I can’t find anything cross-platform. I’ve found « Voce » (http://voce.sourceforge.net/) which would be perfect if it wasn’t depending on Java, « QtSpeech » (lynxline.com/projects/qtspeech/)

Re: [Interest] Windows Process Duration

2014-01-21 Thread Adnan RIHAN
You can check if a process is running by killing the PID with the SIGNAL 0 (zero) and checking the return of kill(1) (http://linux.die.net/man/1/kill). I hope it’s useful for you, as your question was about checking an « exe » and not a PID. -- Regards, Adnan RIHAN. Le mardi 21 janvier

Re: [Interest] Windows Process Duration

2014-01-21 Thread Bo Thorsen
Den 21-01-2014 21:08, Jason Kretzer skrev: Is there a Qt way of getting a handle for a running windows process(or just checking if a certain .exe is currently executing) and determining how long it has been running? No, this isn't something you can do in Qt. You have to do platform specific

Re: [Interest] ASR + TTS

2014-01-21 Thread Gopalakrishna Bhat
I had done this ASR using pocketsphinx with Qt(around 3 years back). You can find code for that at https://gitorious.org/nightingale and it worked on Nokia's N900 very well. Hope this helps. With regards, Gopalakrishna On Wed, Jan 22, 2014 at 3:46 AM, Adnan RIHAN axel50...@gmail.com wrote:

Re: [Interest] QGraphicsWidget and custom QToolTip

2014-01-21 Thread Till Oliver Knoll
Am 21.01.2014 um 20:25 schrieb Petric Frank pfr...@gmx.de: ...QGraphicsWigdet. Only texts (w/ reduced HTML) can be passed to the setTooltip method. Haven't tried it, but wouldn't it be possible to define an img tag then which references an /embedded/ QPixmap (which would have to be

Re: [Interest] Removal of GUIenabled constructor argument of QApplication in Qt5

2014-01-21 Thread Marc Schmitzer
Hi, On 01/21/2014 05:49 PM, Thiago Macieira wrote: We can re-add the constructor with a bool as a private member, which will cause a compilation error for you. well, I am aware of the problem now, but maybe it would be a good idea in general? I can't believe I'm the only user of that feature.