[Interest] Qt5 build failed

2012-08-22 Thread Ramakanthreddy_Kesireddy
Hi, I have configured Qt5 beta using TDM-Mingw32, perl and python (all latest versions) and then tried to build using following commands 1. configure -developer-build -opensource -nomake examples -nomake tests ( to configure) 2. perl build -j 2 (to build) But build has failed a

[Interest] Write from different thread

2012-08-22 Thread Igor Mironchik
Hello. Is it safe to write in to the QTCPSocket from the different threads if socket is protected with mutex? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Diego Iastrubni
On Thu, Aug 23, 2012 at 3:17 AM, Charley Bay wrote: > JM spaketh: > >> Hi all, >> >> What are the best practices to return from a common dialog window? >> At the moment I have already solved with a Slot connected to the closure >> of the dialog, >> that invokes methods to retreive data. But what

Re: [Interest] Scripting & Debugger

2012-08-22 Thread aurindam.jana
> FWIW I think it would be interesting to be able to access a QML > debugger outside QtCreator. It would be useful for us in KDevelop [1] > at least. It helps maintain the quality of the tooling generated > around the technology. Noted.. But that will only be available in 5.1.0 ... (if at all)

Re: [Interest] memory fragmentation?

2012-08-22 Thread K. Frank
Hi Jason! On Wed, Aug 22, 2012 at 9:17 PM, Jason H wrote: > ... > And I am sure others are wondering, just as I still kinda do, if all this is > worth it. And my only answer to that, is MS did it for .NET, so there's got > to be some good reason why they did it like that. I'm certainly no expert

Re: [Interest] memory fragmentation?

2012-08-22 Thread Tony Rietwyk
Hi Jason, If there are 5 public objects whose d-pointers reference the same private object address, how are you going to update them when you relocate the private object? I don't think .Net stores addresses, just handles, so the relocate only needs to update the handle info. That's why

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
I'll take that as a compliment. I fully expected someone to raise the issues you did. And I will counter them with the following comments. Yes, Qt would be less predictable, but more predictable than .NET's allocator. If you want GC-like features, it'll come at a GC-like price. Next on when to d

Re: [Interest] memory fragmentation?

2012-08-22 Thread Constantin Makshin
I doubt that implementing moveable private objects/pointers would be [really] useful. Firstly, Qt can't control the location of the memory block allocated by new/malloc, so the assumption that some [random] reallocations will improve the contiguity of allocated memory looks quite naive. Secondly,

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Alex Malyushytskyy
It depends on functionality you need and type of your dialog (modal/modeless) In any case I do not think appropriate time is when dialog is closed. Check QDialog documentation for example at: http://doc.qt.nokia.com/4.7-snapshot/qdialog.html In general for modal dialog you might want to update da

Re: [Interest] Best Practices returning data from a dialog

2012-08-22 Thread Charley Bay
JM spaketh: > Hi all, > > What are the best practices to return from a common dialog window? > At the moment I have already solved with a Slot connected to the closure > of the dialog, > that invokes methods to retreive data. But what are the best practices? > What are the pros and cons of every s

Re: [Interest] memory fragmentation?

2012-08-22 Thread Alex Malyushytskyy
Harri Pasanen ha...@mpaja.com wrote: >>I wonder why you say Linux is less flexible? Couldn't you just write a custom allocator directly using sbrk()? Also, 32 bit linux process leaves more application space free, so you can easily reach 2Gb process size, while I recall windows XP having iss

Re: [Interest] Scripting & Debugger

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 21.24.49, Peter Kümmel wrote: > I'm looking for a scripting language with a debugger. > Binding to C/C++ should be simple and the debugger should be embeddable. > In times of Qt4 this would be QtScript and scripttools/debugging but this is > all "done". And wh

Re: [Interest] Scripting & Debugger

2012-08-22 Thread Aleix Pol
On Wed, Aug 22, 2012 at 9:24 PM, Peter Kümmel wrote: > I'm looking for a scripting language with a debugger. > Binding to C/C++ should be simple and the debugger should be embeddable. > In times of Qt4 this would be QtScript and scripttools/debugging but this is > all "done". > > Is there such a

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Andreas Pakulat
Hi, On Wed, Aug 22, 2012 at 8:53 PM, Jason H wrote: > I'd probably be using something like libQxt's RPC's functionality to publish > updates to you and incrementally adjust the model, a row at a time. > http://libqxt.bitbucket.org/doc/tip/qxtxmlrpcclient.html Doing changes in the itemviews a row

[Interest] Best Practices returning data from a dialog

2012-08-22 Thread JM
Hi all, What are the best practices to return from a common dialog window? At the moment I have already solved with a Slot connected to the closure of the dialog, that invokes methods to retreive data. But what are the best practices? What are the pros and cons of every solution? TIA, JM

Re: [Interest] memory fragmentation?

2012-08-22 Thread BRM
> From: Jason H >C++ on .NET functions as it does now, however the compiler introduces the >operator of ^ as a type modifier like * (pointer) >^ are handles to managed objects, as * are addresses of objects. The runtime >then handles dereferencing the handles for you. jsut like your compiler us

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Bo Thorsen
Den 22-08-2012 20:29, Stephen Chu skrev: > Thanks to everyone who helped on the 64-bit internal ID question I > posted. I end up maintaining a copy of index-and-id mapping to work > around it. > > Now I have a question on how to properly update the model. My model is a > read-only representation of

[Interest] Scripting & Debugger

2012-08-22 Thread Peter Kümmel
I'm looking for a scripting language with a debugger. Binding to C/C++ should be simple and the debugger should be embeddable. In times of Qt4 this would be QtScript and scripttools/debugging but this is all "done". Is there such a combination in Qt5? AFAIK QML could be used also as a scripting

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Jason H
I'd probably be using something like libQxt's RPC's functionality to publish updates to you and incrementally adjust the model, a row at a time. http://libqxt.bitbucket.org/doc/tip/qxtxmlrpcclient.html From: Stephen Chu To: Interest@qt-project.org Sent: W

[Interest] Proper way of updating a model?

2012-08-22 Thread Stephen Chu
Thanks to everyone who helped on the 64-bit internal ID question I posted. I end up maintaining a copy of index-and-id mapping to work around it. Now I have a question on how to properly update the model. My model is a read-only representation of a database. I am using a QTreeView to hold the

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
C++ on .NET functions as it does now, however the compiler introduces the operator of ^ as a type modifier like * (pointer) ^ are handles to managed objects, as * are addresses of objects. The runtime then handles dereferencing the handles for you. jsut like your compiler uses the appropriate in

Re: [Interest] Qt5 alpha on windows

2012-08-22 Thread Ramakanthreddy_Kesireddy
Hi, Could you please let me know which of the below configure options would be good For building Qt5.0. 1.configure -developer-build -opensource -nomake examples -nomake tests 2. configure -prefix %CD%\qtbase -opensource -nomake tests Thanks and Regards, Ramakanth -Original Message- Fro

Re: [Interest] memory fragmentation?

2012-08-22 Thread Graeme Gill
Jason H wrote: > This seems like it would be slow, especially when you started using haddrist > swap space, unless > you have that turned off. I think that it would be better to just check > against a limit yourself > as to avoid allocating items that would be swapped.* Not at all, because the a

Re: [Interest] memory fragmentation?

2012-08-22 Thread Jason H
This seems like it would be slow, especially when you started using haddrist swap space, unless you have that turned off. I think that it would be better to just check against a limit yourself as to avoid allocating items that would be swapped.* *I have no idea how your application uses the ca

Re: [Interest] memory fragmentation?

2012-08-22 Thread André Somers
Op 21-8-2012 12:01, Bo Thorsen schreef: > Things you can do to combat this is mostly to make your objects smaller. > For example, use linked lists instead of arrays. The lists will add 4 > bytes to each object, but the the object sizes are much smaller. Note that you may not need to go as extreme a

Re: [Interest] Qt5 alpha on windows

2012-08-22 Thread Vladimir Minenko
It looks like the current version of the ActivePerl (5.14.2 Build 1402 (64-bit)) has an outdated version of the GetOpt::Long module (2.35) which does not have GetOptionsFromArray yet. The required version is 2.38. I just discovered this myself while building Qt5 on a another PC… $ perl -MGetopt

Re: [Interest] QString operator==

2012-08-22 Thread André Somers
Op 22-8-2012 13:40, Thiago Macieira schreef: > On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote: >> Hmmm... Wouldn't it make sense to also check on the the d pointers >> actually being the same? Or is that in qMemEquals? > Hint: please check before asking. Takes a couple of second

Re: [Interest] QString operator==

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 13.35.19, André Somers wrote: > Hmmm... Wouldn't it make sense to also check on the the d pointers > actually being the same? Or is that in qMemEquals? Hint: please check before asking. Takes a couple of seconds... static bool qMemEquals(const quint16 *a, con

Re: [Interest] QString operator==

2012-08-22 Thread André Somers
Op 21-8-2012 13:14, Bo Thorsen schreef: > Den 21-08-2012 13:09, Thomas Meyer skrev: >> Hi, >> I can't find the definition for >> ... >> booloperator==(constQString&s)const; >> ... >> in QString (.h, line 403, Qt v4.8.2 (MS Windows 7)). >> >> I only found it for QLatinString and QByteArray: >> (Wher

Re: [Interest] unable to configure Qt5 on ubuntu 12.0 using libxcb

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 11.04.49, Kk_Kishore wrote: > Hi, > > I'm unable to configure Qt5 beta on ubuntu 12.04 with "libxcb" can someone > help me to configure this. Please report beta errors to releas...@qt-project.org, with the steps that you took to reach the problem and the error

[Interest] unable to configure Qt5 on ubuntu 12.0 using libxcb

2012-08-22 Thread Kk_Kishore
Hi, I'm unable to configure Qt5 beta on ubuntu 12.04 with "libxcb" can someone help me to configure this. Is there any other compiler to build Qt5 on ubuntu 12.04. pls send the download location if any. Thanks in advance. Regards, K.K DISCLAIMER: This email

Re: [Interest] memory fragmentation?

2012-08-22 Thread Marc Mutz
On Wednesday August 22 2012, Konrad Rosenbaum wrote: > For category 1 (real time, small memory FP) I can only suggest: separate > the processes. Have one that does the critical stuff in a deterministic > manner with pre-allocated memory and another process for the display - if > there is a memory p

Re: [Interest] memory fragmentation?

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 10.53.48, Harri Pasanen wrote: > Also, 32 bit linux process leaves more application space free, so you > can easily reach 2Gb process size, while I recall windows XP having > issues after 1.5Gb.It's been a while, so I might not recall all > details... A Li

Re: [Interest] Qt5 alpha on windows

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 04.49.55, Ramakanthreddy_Kesireddy wrote: > tools-->options-->Build&Run-->QtVersions and on the right side add Button > > qmake.exe should be in the following path: > > QtInstallationFolder\qtbase\bin\qmake.exe > Please let me know if we need to do any setting

Re: [Interest] memory fragmentation?

2012-08-22 Thread Lukas Geyer
Am 22.08.2012 09:44, schrieb Graeme Gill: > Lukas Geyer wrote: >> The address space is expanded immediately but physical memory pages are >> assigned at the moment the memory is accessed; either never, always or >> at kernels discretion, depending on the implemented overcommit strategy [1]. > > Rig

Re: [Interest] Text editor's line numbers: misalignment

2012-08-22 Thread Sensei
On 8/22/12 10:09am, Diego Iastrubni wrote: > 1) use the same font for the line number as the text editor - > > or > > 2) set the hight of each line in the panel, as the hight of each line in > the editor. > Actually, that is what the code from Qt does. It wouldn't explain why the code works with

Re: [Interest] memory fragmentation?

2012-08-22 Thread Konrad Rosenbaum
Hi, On Tuesday 21 August 2012 12:01:49 Bo Thorsen wrote: > Memory fragmentation is defined as the problem where you allocate a > bigger chunk of memory than what is available, even if the total amount > of free memory is available. > > Do you know if the ^ implementation in .NET actually does the

Re: [Interest] memory fragmentation?

2012-08-22 Thread paulf
- Original Message - > Am 21.08.12 18:04, schrieb Thiago Macieira: > > On terça-feira, 21 de agosto de 2012 07.09.44, Jason H wrote: > >> By returning out of memory, unrolling the stack, then at the top > >> level > >> displaying the error. > > > > Well, don't use for Qt. > > > > Qt code *w

Re: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-22 Thread Thiago Macieira
On quarta-feira, 22 de agosto de 2012 16.53.26, Tony Rietwyk wrote: > Would still be nice to know how to enable it for sending compressed > requests? You need to compress yourself and set the appropriate Content-Transport- Encoding headers. -- Thiago Macieira - thiago.macieira (AT) intel.com So

Re: [Interest] Text editor's line numbers: misalignment

2012-08-22 Thread Diego Iastrubni
On Wed, Aug 22, 2012 at 10:55 AM, Sensei wrote: > If I change the font to "Courier", or "Times", or "Andale Mono" or > Xcode's "Menlo", everything is OK, I've tested alignment with 10K lines. > > When I use "Monaco", the font I intended to use, lines numbers get > misaligned almost immediately. >

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-22 Thread Stephen Kelly
On Tuesday, August 21, 2012 19:33:16 Stephen Chu wrote: > I was excited to see internalId() returns a qint64. Then realized that > there's not way to store it. And after reading the source, the ID is > stored in the void * pointer and cast to qint64 when returned. > > A union of quint64 and void

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-22 Thread Bo Thorsen
Den 21-08-2012 20:55, Stephen Chu skrev: > Is there a way to store a 64-bit internal ID in QModelIndex? The > function QModelIndex::internalId() returns a 64-bit number but there's > no way to put one in. The constructor takes only a 32-bit integer. Hi Stephen, Please forget all ideas of using th

[Interest] Text editor's line numbers: misalignment

2012-08-22 Thread Sensei
Hi all, I've got a question about QPlainTextEdit, adding line numbers. I've been following the Qt example in http://qt-project.org/doc/qt-4.8/widgets-codeeditor.html, but I am experiencing a *very weird* problem. The only difference with the code above is in the constructor, as you can see in t

Re: [Interest] memory fragmentation?

2012-08-22 Thread Harri Pasanen
On 08/21/2012 01:27 AM, Alex Malyushytskyy wrote: > For example one of our application on Windows ( this is the case when > Windows is more flexible than Linux) > > - reserves the largest amount of continues memory we could afford > for data (leaving enough for your widgets ) using VirtualAlloc

Re: [Interest] memory fragmentation?

2012-08-22 Thread Graeme Gill
Lukas Geyer wrote: > The address space is expanded immediately but physical memory pages are > assigned at the moment the memory is accessed; either never, always or > at kernels discretion, depending on the implemented overcommit strategy [1]. Right, but malloc will return NULL if the address s