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

2015-11-27 Thread Syam Krishnan
On 11/27/2015 12:43 PM, Thiago Macieira wrote: 25 seconds is the exact time of a D-Bus method call timeout. 50 seconds would be two, back-to-back. Then that should be it. On KDE, I sometimes feel there's something wrong with dbus because at times even "shutdown" (from the menu) does not have

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

2015-11-26 Thread Syam Krishnan
On 11/25/2015 11:03 PM, william.croc...@analog.com wrote: On 11/25/2015 12:32 PM, william.croc...@analog.com wrote: I am wondering if this problem can happen again. What can possibly cause QPrinter constructor to get stuck for such a long time? For me Qt was scanning the network, buildin

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

2015-11-25 Thread Syam Krishnan
I was testing an application of ours on Fedora 23 (x86-64) with Qt 4.8.7 and found that the startup is delayed by 40 seconds or more. The culprit seems to be QPrinter. Just creating a QPrinter object takes anywhere between 25 to 50 seconds! I have attached a minimal example program. I used th

Re: [Interest] Problem with QPixmap.

2015-04-18 Thread Syam Krishnan
On 04/18/2015 10:33 AM, Igor Mironchik wrote: > Hi, William. > > On Sat, 18 Apr 2015 01:54:27 +0300, william.croc...@analog.com > wrote: >> Have you added the .png file to your .qrc file. > Yes, I have. I have a similar usage in my project and my qrc file is like this: images/pic

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

2015-03-17 Thread Syam Krishnan
On 03/17/2015 09:23 PM, Sze Howe Koh wrote: > >> Well, my situation already needs me to poll objects periodically. >> The following is indicative of my problem: >> >> while(1) >> { >> for(all_objects) >> { >>ret = object[i]->execute() >>if(ret == complete) all_objects.remove

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

2015-03-17 Thread Syam Krishnan
On 03/17/2015 08:51 PM, André Somers wrote: > Well, in any multi-threaded programming, you basicaly have no control > over when something runs. That's up to the OS, not you. It will usually > be "soonish", but... Understood. >>> That is not acceptable to me. I am looking for the simplest solution

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

2015-03-17 Thread Syam Krishnan
On 03/17/2015 08:03 PM, André Somers wrote: > Might I suggest a third method? Use QtConcurrent::run(yourFunction) > instead. The documentation on QtConcurrent::run() says "Note that the function may not run immediately; the function will only be run when a thread is available." That is not accep

[Interest] Executing a small function as a thread

2015-03-17 Thread Syam Krishnan
Hi I have a function that I need to execute as in a thread in response to some event. The event is not a signal. My function do_something() typically takes less than 20 milliseconds to finish. Method-1 -- 1. I derive from QThread and override run() to: void run() { do_something();

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

2014-09-01 Thread Syam Krishnan
On 09/02/2014 12:05 AM, Thiago Macieira wrote: > The only way to do this is to include() a file in each .pro file. That's what I do for my sub-projects. You can define the macros (or other Qmake stuff) in pri (or even pro files) files and include them in the sub-projects' pro files. It works well

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

2014-05-19 Thread Syam Krishnan
On 05/19/2014 09:52 PM, Thiago Macieira wrote: > If you need bitwise identical builds for the same source, set the same hash > seed value: Can you clarify on that "bitwise identical builds for the same source". I was under the impression that with a C++ compiler, I get the same output for the sam

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

2014-04-18 Thread Syam Krishnan
On 04/17/2014 08:57 PM, Murphy, Sean wrote: Since there’s no reason to show that contextual menu on the ‘+’ tab, I’d like to disable the right click functionality just on the last tab, which I’m trying to d

Re: [Interest] efficient drawing advice

2014-03-26 Thread Syam Krishnan
On 03/26/2014 04:43 PM, william.croc...@analog.com wrote: > > Create trace abstracts (with reduced point counts) for the purposes of > drawing. > In the extreme case, if a trace is close enough to a straight line (given > the resolution of the display) the trace could be abstracted as 2 points. >

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

2013-09-20 Thread Syam Krishnan
On 09/20/2013 07:32 PM, Stefano Cordibella wrote: > Hi list! > I just wonder to work with RS 422 in Qt 4 (4.8.4). > I read about QtSerialPort for Qt 5 backported to Qt4 but in the first > line of docs I read that it support the RS-232 pinouts. Having RS232 or 422 shouldn't cause any differenc

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

2013-09-13 Thread Syam Krishnan
Hi We've been use Qt4 to create desktop applications on Linux written in C++. My requirements: 1. Need best possible performance from Qt - we always use C++ for coding 2. Not interested in coding application logic in Javascript 3. Have not tried QML for GUI, probably do not prefer to use Java

Re: [Interest] 64 bit capable QVector

2013-09-03 Thread Syam Krishnan
On 09/03/2013 08:04 PM, Michael Jackson wrote: > On Sep 3, 2013, at 10:23 AM, André Somers wrote: > >> Op 3-9-2013 16:12, Michael Jackson schreef: >>> I am curious as to what Qt class (if any) folks use for memory allocations >>> larger then 2^31 elements? We write some software that analyzes lar

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 Latin 1… > > As I've ju

Re: [Interest] Qt Installer Framework

2013-06-18 Thread Syam Krishnan
On 06/18/2013 03:40 PM, Graham Labdon wrote: > > So I created an installer using Qt installer framework and it runs on > my PC. > > So I copied it to a USB stick to install on a different PC but when I > run it I get an error dialog stating that it is not a valid win32 > application. > > If I ru

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

2013-06-09 Thread Syam Krishnan
On 06/09/2013 10:17 PM, Thiago Macieira wrote: On sábado, 8 de junho de 2013 23.09.44, Thiago Macieira wrote: How about the environment? env | grep atom Go to your project's directory and run this please: qmake -d -d 2>&1 | grep atom > output The first line in the "output" file will be where

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
Hi,   I'm building Qt Creator 2.8 beta on CentOS 6. I've noticed that the gcc command line options get "-march=i686 -mtune=atom". I'm building on a VM with Core i5 processor and 'atom' is not a default option. I don't know where it is coming fr

Re: [Interest] Read a binary file

2012-12-19 Thread Syam Krishnan
On 12/19/2012 02:45 PM, Yuriy Rusinov wrote: > for (int i=1; i<=na; i++) > { > char * colData = new char [nd2*sizeof (unsigned long)]; > qint64 colLength = fData->readLine (colData, nd2*sizeof > (unsigned long)); Why would you use readLine() for a binary file? The conce

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
On 10/22/2012 03:16 AM, d3fault wrote: On Oct 21, 2012 11:02 AM, "Bo Thorsen" wrote: > > If you set out to correct the documentation, you should make it better, > not go from one one-sided way of thinking to

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
On 08/31/2012 05:07 AM, Shriramana Sharma wrote: > > Can anyone please tell me how to set the width of the radio button > same as the height (since only the button part and no label is being > displayed) and hwo to ensure that the components of this cluster are > fixed w.r.t one another when the wi

[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

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-project.org http://li

Re: [Interest] QTimer stops triggering

2012-06-04 Thread Syam Krishnan
On 06/04/2012 12:34 PM, Vannoote, Frederik wrote: Hey all,       I’m having a weird thing about Qtimer which I can’t explain until now. We are using a dedicated appl

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
On 04/13/2012 02:16 AM, Till Oliver Knoll wrote: > Am 12.04.12 14:09, schrieb Mark Griffith: > >> I think there are lots of complex areas of >> knowledge - for example I cannot imagine that electronics - teaching >> circuit designers how to keep unwanted impedance under control for >> example - is

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

2012-01-06 Thread Syam Krishnan
On 01/06/2012 06:43 PM, Constantin Makshin wrote: > Confirmed here. Windows says it's an "access violation" error > somewhere inside QtWebKit (version 4.7.4 :/ ). When invoked from a terminal on Fedora, it says: "QStackedWidget::setCurrentWidget: widget 0x0 not contained in stack Segmentation fau

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
On 11/24/2011 09:09 PM, Konstantin Tokarev wrote: Probably it would be better idea to build Qt and Qt Creator from sources, than try to satisfy other people's binaries with self-built libstdc++. Indeed. But I cannot update the system version of Qt 4.5

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

2011-11-24 Thread Syam Krishnan
On 11/23/2011 08:27 PM, Pritam Ghanghas wrote: > As for development you can build qt or install dev packages from your > distribution and configure qt creator to use them. you can even > configure several different versions. I have used multiple version b/w > 4.5 to 4.7 without any problems. Well,

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

2011-11-23 Thread Syam Krishnan
On 11/23/2011 07:43 PM, Thiago Macieira wrote: > Why? Why can't you just install a very recent Qt and build Creator > with that? It doesn't even have to be a global installation... Well, in my office, we have kind of standardised all our machines on Qt 4.5 on RHEL 5. We don't want to migrate to

[Interest] Qt creator - Minimum Qt version?

2011-11-23 Thread Syam Krishnan
Hi.. Sorry for a possibly silly question. I just can't seem to easily get this info anywhere. Is there a page (in the docs) where the minimum required Qt version is mentioned for each version of Qt Creator IDE? I want to know the latest