[Interest] Emitting signal from QThread::run()

2016-02-26 Thread Syam
In myGuiSlot() I am typically manipulating some widgets - setting the text of a QLabel etc. -- Regards, Syam sya...@gmail.com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-27 Thread Syam Krishnan
) does not have any effect. Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-26 Thread Syam Krishnan
surprise me if the problem has returned. Run it in the debugger and interrupt, It should be obvious what it is doing. I haven't been able to reproduce this problem :-( Everything seems to be fine now. Syam ___ Interest mailing list Intere

[Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-25 Thread Syam Krishnan
ted. I am wondering if this problem can happen again. What can possibly cause QPrinter constructor to get stuck for such a long time? Thanks and regards, Syam qprinter.tar.gz Description: application/gzip ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Problem with QPixmap.

2015-04-18 Thread Syam Krishnan
images/pick.png images/undo.png In the code, I have: button->setIcon(QIcon(":/images/pick.png")); Thanks, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Executing a small function as a thread

2015-03-17 Thread Syam Krishnan
or my_obj_list; ... QFuture f = QtConcurrent::run( &SomeClassObj, &SomeClass::do_something, my_data, my_obj_list); Now, my question is will this cause a copy of my_obj_list? Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Executing a small function as a thread

2015-03-17 Thread Syam Krishnan
ct::execute() is supposed to get its work done by calling do_something(). execute() should not block but do_something() is blocking. That's why I need to call it in a separate thread. Till do_something() completes, subsequent calls to execute() shall return a value indicating that it's

Re: [Interest] Executing a small function as a thread

2015-03-17 Thread Syam Krishnan
ill check if the thread is already executing. If it is, it will wait till the thread execution is complete. And I'm using Qt 4.8 on Linux. Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Executing a small function as a thread

2015-03-17 Thread Syam Krishnan
impler for my use case as I find QWaitCondition too clumsy to use. But I am worried about possible overheads of starting the thread new every time. Please remember that I don't need signals and slots for this. Any help is highly appreciated. Thanks

Re: [Interest] How to define something for all sub-projects?

2014-09-01 Thread Syam Krishnan
les. It works well. Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt Resource Compiler - why does it randomize the order of items?

2014-05-19 Thread Syam Krishnan
output for the same source. I've heard that things are different with C#/.Net. Is this something specific to Qt or rcc? Thanks and regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Prevent right click on specific QTabWidget tab from emitting currentChanged(int) signal

2014-04-18 Thread Syam Krishnan
ght-click that caused currentChanged(int) to be emitted… How about avoiding currentChanged() and creating new tab in mousePressEvent() if its the left mouse button? Syam ___ Interest mailing list Inter

Re: [Interest] efficient drawing advice

2014-03-26 Thread Syam Krishnan
onotonic data plots. How do you store the full million points data? Do you keep all points in memory so that it is readily available when the user zooms? Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Serial port 422 best practice in Qt 4

2013-09-20 Thread Syam Krishnan
't cause any difference to software as you're using asynchronous communication (i.e. without any flow control and handshaking synchronisation lines). Most RS422 devices I've seen need only Tx & Rx line pairs. The same program should work fine f

[Interest] Advantage of Qt5 over Qt4 for C++/Widgets

2013-09-13 Thread Syam Krishnan
hear that 'Widgets', as you call in Qt5 is 'done' and so we can't expect any further improvements on that. On the other hand, I hear there are performance improvements in the underlying components like QStrings. So, can somebody please throw

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Syam Krishnan
e for QVector. I think the point was that since std::vector is a wrapper around an array, it'd require a *contiguous* block of memory - which might not be available even though there's sufficient RAM. Anyway, you should know your system better. regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Syam Krishnan
On 08/31/2013 09:12 AM, Thiago Macieira wrote: > On sexta-feira, 30 de agosto de 2013 19:47:48, Syam wrote: > >> Am I right here? Of course, the assumption is that the original QString is >> simple English text. > Even “simple English” may contain characters not encodable in

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-30 Thread Syam
ate. Am I right here? Of course, the assumption is that the original QString is simple English text. Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt Installer Framework

2013-06-18 Thread Syam Krishnan
e as the one on your hard drive. regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Building Qt Creator - mtune=atom?

2013-06-09 Thread Syam Krishnan
; I get: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables Now I'm even more confused. It seems like 'atom' is coming from a lower layer (that Qt). regards, Syam DE

Re: [Interest] Building Qt Creator - mtune=atom?

2013-06-08 Thread Syam Krishnan
On 06/09/2013 09:09 AM, Thiago Macieira wrote: On domingo, 9 de junho de 2013 07.51.03, Syam Krishnan wrote: I don&aps;t know where it is coming from as I can&aps;t locate &aps;atom&aps; in any of Qt creator source files. Is it something I&aps;m doing with my VM? Probabl

[Interest] Building Qt Creator - mtune=atom?

2013-06-08 Thread Syam Krishnan
I don't know where it is coming from as I can't locate 'atom' in any of Qt creator source files. Is it something I'm doing with my VM? regards, Syam ___ Interest mailing list

Re: [Interest] Read a binary file

2012-12-19 Thread Syam Krishnan
or a binary file? The concept of a 'line' is for text files. You should use read() instead. regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Syam Krishnan
On 10/22/2012 10:57 AM, Bo Thorsen wrote: Den 22-10-2012 03:38, Syam Krishnan skrev: A question to all: I have a GUI application. I need to do some task (for example, periodically

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-21 Thread Syam Krishnan
). Is there any other recommended or better way to do it? Note that I don't need to do any Qt stuff (update GUI, signals & slots etc.) in my 'worker' thread. regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-31 Thread Syam Krishnan
On 08/31/2012 12:15 PM, Thiago Macieira wrote: > On sexta-feira, 31 de agosto de 2012 09.22.15, Syam Krishnan wrote: >> However, why does Qt have two versions when the document mentions only one? > Because I was lazy when I added the second overload and forgot to add the > docume

Re: [Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Syam Krishnan
On 08/31/2012 08:25 AM, Rohan McGovern wrote: > Syam Krishnan said: >> >> This version (qreal is a typedef to double) is matching with the >> documentation (even Qt5 documentation mentions only qreal). >> Should this be reported as a bug ag

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Syam Krishnan
nother when the window is resized? Try having another QWidget as the background parent widget of the buttons. Set it to have fixed size and set maximum (and minimum) size. Now you cat try to have a QGridLayout on it and add your radio buttons to the 3x3 grid.

[Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Syam Krishnan
problem. regards, Syam Krishnan ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Dragging child widgets around

2012-08-13 Thread Syam
ove and release events. I want to know of there is some other way without adding such code to all my widget classes. As I said, some of these are ordinary QLabels and therefore overriding event handlers is not easy. Any ideas? Thanks, Syam Krishnan ___ I

Re: [Interest] Test of the list

2012-07-27 Thread Syam Krishnan
On 07/27/2012 02:43 PM, Fabio Giovagnini wrote: > Sorry, but I don'0t receive the message I post. > If you read this mail please let me know answering to mai mail address Message received. Syam ___ Interest mailing list Interest@qt-proje

Re: [Interest] QTimer stops triggering

2012-06-04 Thread Syam Krishnan
creating the timer objects afresh everytime? Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] thanks for extra reading suggestions - sorry to insult technical writers

2012-04-17 Thread Syam Krishnan
On 04/17/2012 12:09 PM, Graeme Gill wrote: > Syam Krishnan wrote: > >> So, the idea that writing software is more complex than designing an >> electronic circuit is just based on lack of knowledge/experience on >> electronics. > I don't think so. I'm an electr

Re: [Interest] thanks for extra reading suggestions - sorry to insult technical writers

2012-04-13 Thread Syam Krishnan
the other hand can put almost infinite number of nested 'if's or loops without ever worrying if the outer loop will be able to drive the inner one" So, the idea that writing software is more complex than designing an electronic circuit is just based on lack of knowledge/experienc

Re: [Interest] Qt Assistant 4.8.0 crashes by one page and CTRL+F4 (close tab)

2012-01-06 Thread Syam Krishnan
ined in stack Segmentation fault" regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt creator - Minimum Qt version?

2011-11-25 Thread Syam Krishnan
On 11/25/2011 04:05 PM, Thiago Macieira wrote: > On Friday, 25 de November de 2011 06:31:37 Syam Krishnan wrote: >> Indeed. But I cannot update the system version of >> Qt 4.5. So I&aps;d have to recompile new Qt into some other >> directory, and have that version used wh

Re: [Interest] Qt creator - Minimum Qt version?

2011-11-24 Thread Syam Krishnan
Qt 4.5. So I'd have to recompile new Qt into some other directory, and have that version used when building Qt Creator. Won't that be equally ugly/difficult/time-consuming? Thanks,

Re: [Interest] Qt creator - Minimum Qt version?

2011-11-24 Thread Syam Krishnan
ently-not-so-good LD_LIBRARY_PATH hack to get Qt creator working. I am going to try that tomorrow. regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt creator - Minimum Qt version?

2011-11-23 Thread Syam Krishnan
;t want to migrate to newer versions every now and then and have all our software tested again for each library version. That's why I was wondering if I can use the most recent version of Qt Creator with this setup. Syam ___ Interest mailing li

[Interest] Qt creator - Minimum Qt version?

2011-11-23 Thread Syam Krishnan
atest version of Qt Creator that I can use with a given version of Qt (v4.5, for example). Thanks and regards, Syam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/lis