[Interest] qt.conf

2012-03-20 Thread Graham Labdon
Hi I am trying to use the qt.conf functionality In my qt.conf file I have the following [Paths] prefix = C:\\Program Files (x86)\\AcquisitionSoftware\\Qtfile:///\\AcquisitionSoftware\Qt Running the app through the debugger I can use QLibraryInfo to verify that Qt is recognising the presence of

Re: [Interest] qt.conf

2012-03-20 Thread Diego Iastrubni
On Tue, Mar 20, 2012 at 11:44 AM, Graham Labdon graham.lab...@avalonsciences.com wrote: Hi I am trying to use the qt.conf functionality In my qt.conf file I have the following ** ** [Paths] prefix = C:\\Program Files (x86)\\AcquisitionSoftware\\Qt ** **

Re: [Interest] qt.conf

2012-03-20 Thread Hugo Drumond Jacob
Hello Graham! On Windows, you can add the Qt library path (directory with .DLL files) to the environment path (PATH environment variable). The qt.conf file is used only after your application starts. Before this, Windows need to know all .DLL files used by your program (like ldconfig on Linux).

Re: [Interest] qt.conf

2012-03-20 Thread Tony Rietwyk
Hi Graham, As others have confirmed, the libs library path set in qt.conf cannot be used to redirect where Qt is loaded from - worse, it may not have any relationship to the running dll's! If the defaults of the other locations (like plugins) works for you, then there is no need to

Re: [Interest] The Proper Way to Mix/Cross-Fade Images

2012-03-20 Thread Bo Thorsen
Hi Josiah, You replied to me in person, please keep it on the list. If they're not the same dimensions, or one of the images is semitransparent, then even 50% opacity + 50% opacity = 100% opacity wouldn't help you (because one of them would be 50% * x% where 0 = x 100). You wanted to avoid

Re: [Interest] The Proper Way to Mix/Cross-Fade Images

2012-03-20 Thread Jason H
I wonder if what he wants is a 3-image fade: layer images 1 and 2 (bottom - top) as : 121 or 221 then cross fade the top two. The first layer is always 100% opacity. This should produce an additive-looking fade using multiplication. - Original Message - From: Bo Thorsen

Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread John Weeks
On 20-Mar-2012, at 10:24 AM, Konstantin Tokarev wrote: On Windows, I can filter keypress events looking for Qt::Key_Cancel, which is generated by pressing Ctrl+Break.The Macintosh equivalent is Cmd-period. As far as I can make out, the Cocoa system catches that key combination and sends

Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread Nikos Chantziaras
On 20/03/12 19:31, John Weeks wrote: On 20-Mar-2012, at 10:24 AM, Konstantin Tokarev wrote: On Windows, I can filter keypress events looking for Qt::Key_Cancel, which is generated by pressing Ctrl+Break.The Macintosh equivalent is Cmd-period. As far as I can make out, the Cocoa system

Re: [Interest] Is the emit keyword purely cosmetic?

2012-03-20 Thread 1+1=2
Yes, you are right. it's an empty macro. #define emit so, you can write emit emit emit emit someSignal(); too, if you like. On Tue, Mar 20, 2012 at 10:58 AM, Nikos Chantziaras rea...@gmail.com wrote: I noticed that when emitting signals, I can simply omit the emit keyword.  moc seems to

Re: [Interest] Is the emit keyword purely cosmetic?

2012-03-20 Thread Thiago Macieira
On terça-feira, 20 de março de 2012 19.58.00, Nikos Chantziaras wrote: I noticed that when emitting signals, I can simply omit the emit keyword. moc seems to produce the same code, regardless of whether I do: moc doesn't parse your source code. So it doesn't see any emit at all. emit

Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread John Weeks
On 20-Mar-2012, at 10:53 AM, Nikos Chantziaras wrote: Maybe this is relevant: http://qt-project.org/doc/qt-4.8/qapplication.html#macEventFilter OK- that was a good lead. It seems that at that point the Cmd-period key event *IS* available. Here is my code: In my subclass of QApplication:

Re: [Interest] The Proper Way to Mix/Cross-Fade Images

2012-03-20 Thread Christoph Feck
On Tuesday 20 March 2012 14:17:49 Josiah Bryan wrote: I may be crazy, or just aiming for something unrealistic. But here goes: - I want to cross-fade two images over a background. (Simple, right?) Well, not really. Forgot the Cross-fading part - lets just take one point in time, a 50/50

[Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
Hi there, Qt does this mouse move event compression, I can imagine it is good but in one of my application where user is doing some kind of drawing with mouse we dont want this compression of mouse move event take place, is there any way I can avoid this? I see QCoreApplication::compressEvent()

Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
If I subclass coreapplication and reimplement compressEvent, how do I use this class in my GUI application which already has QApplication object ? any help will be appreciated. On Tue, Mar 20, 2012 at 3:48 PM, Efan... efanhar...@gmail.com wrote: Hi there, Qt does this mouse move event

Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Efan...
You mean I should use an object of myCoreApplication rathe QCoreApplication, But documentation says for GUI application one will have to use QApplication and for non gui Qcoreapplication. So if i use subclass of qcoreapplication wont this create any problem in my GUI. Documentation further says

Re: [Interest] is there any way to avoid compression of event

2012-03-20 Thread Thiago Macieira
On terça-feira, 20 de março de 2012 16.27.14, Efan... wrote: that is the problem it is not virtual in QApplication it is virtual in QCoreApplicatoin It is. class Base { public: virtual void compressEvents(); }; class Derived: public Base { public: void compressEvents(); }; It's

Re: [Interest] About model/view sorting and headers

2012-03-20 Thread Stephen Kelly
On Monday, March 05, 2012 17:44:26 Yves Bailly wrote: Le 05/03/2012 15:58, Jason H a écrit : It would seem as your row header isn't header, but data? Not sure about this... I fill my headers with code like this, in the loop which appends rows: // in the following, this is a subclass of