On quarta-feira, 13 de junho de 2012 04.07.57, Jan Kundrát wrote:
> If the reference is a weak one (ie. "use it if it's available, but don't
> break when it's gone for some reason"), you can just use QPointer (or
> better, as I've just learned, the QWeekPointer).
Keep using QPointer. We've turned
On Wed, Jun 13, 2012 at 2:08 AM, Jason H wrote:
> Being on the embedded side, I can see why he wants only one client at a
> time. It coudl be that he has a serial protocol that is not going over TCP,
> where there is no idea of multiple clients.
> He should be able to set maxPendingConnections to
On 06/12/12 21:36, Jochen Becher wrote:
> In my case childB is not a child of childA but both are children of
> parent (widgets in the same group/layout). But childB has a reference to
> childA which might be accessed in destructor. So I have either:
If the reference is a weak one (ie. "use it if
Or, as in my case, there is only suppose to be one instance of the software
coming in over that network connection; and a new connection means the software
is running twice; so I just ignore it (e.g. close it). This also allows me to
switch the connection, or allow the other program to go away a
On 6/12/12 5:12 PM, Thiago Macieira wrote:
> On terça-feira, 12 de junho de 2012 15.16.38, Stephen Chu wrote:
>> I am curious if the runtime issue on OS X has been dealt with?
>
> Yes. We decided not to force libc++. We're still using the compiler default,
> whichever that is (currently libstdc++).
On terça-feira, 12 de junho de 2012 21.36.46, Jochen Becher wrote:
> In my case childB is not a child of childA but both are children of
> parent (widgets in the same group/layout). But childB has a reference to
> childA which might be accessed in destructor.
That's a whole different problem. Acce
On terça-feira, 12 de junho de 2012 15.16.38, Stephen Chu wrote:
> I am curious if the runtime issue on OS X has been dealt with?
Yes. We decided not to force libc++. We're still using the compiler default,
whichever that is (currently libstdc++). If the compiler changes defaults, you
can blame th
Being on the embedded side, I can see why he wants only one client at a time.
It coudl be that he has a serial protocol that is not going over TCP, where
there is no idea of multiple clients.
He should be able to set maxPendingConnections to 0. But as the docs say "but
the operating system may
Hi,
On Tuesday 12 June 2012 11:14:54 Gopalakrishna Bhat wrote:
> I am trying to use QTcpServer to accept connection from only one client at
> a time, but i'm not able to do so.
>
> I tried setting setMaxPendingConnections to one but then
> also waitForConnected on the second client returned true.
Hi,
On Tue, Jun 12, 2012 at 9:32 PM, Jochen Becher wrote:
> As children are stored in a simple list and new children will be
> appended to its end it would be very simple to delete them in reverse
> order: Simply traverse the list from count()-1 to 0. This would be a
> one-line-change in method
On 6/12/2012 1:07 PM, Jason H wrote:
> Addendum: Win7-64 has a "program files" and "program files (x86)" folder
> distinction. I'm betting that is not taken into account.
That was naturally my first thought, but that wasn't the issue. It
turned out to be a bad pointer dereference. Quite a red her
In my case childB is not a child of childA but both are children of
parent (widgets in the same group/layout). But childB has a reference to
childA which might be accessed in destructor. So I have either:
1) delete them in correct order (and I wouldn't like to create them in
unnatural oder just to
As children are stored in a simple list and new children will be
appended to its end it would be very simple to delete them in reverse
order: Simply traverse the list from count()-1 to 0. This would be a
one-line-change in method deleteChildren().
Of course if I say "delete it in reverse order of
On 6/11/12 10:49 PM, Rohan McGovern wrote:
> Stephen Chu said:
>> I just pulled Qt 5 from git and don't see the new C++11 option. They are
>> in the master branch of qtbase but Qt 5 doesn't pull that in yet.
>>
>
> Right, that's actually because it appears to have caused a few
> regressions. The ne
On Monday 11 June 2012 19:27:33 Paul Miller wrote:
> On 6/11/2012 12:24 PM, Guenther Boelter wrote:
> > are we talking about Windows, Linux or OS X?
>
> Windows 7 x64.
Run it either from QtCreator (if you use it) or from a debugger - Qt messages
are written to the Windows debug stream - both wil
I have the following PathView:
PathView {
id: projectView
anchors.fill: parent
model: carProjects
delegate: projectEntry
pathItemCount: 3
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
path: Path {
After plenty of trial and error I found that
QApplication::setGraphicsSystem("raster") causes
Page {
orientationLock: PageOrientation.LockLandscape
...
}
to rotate the page 180 degrees, so it ends up upside down portrait on
Symbian Belle FP1 (701 & 808). I'm not sure if this is a sym
Yes, interally, IIRC it is a QList, and suffer/enjoys all the traits of such.
And FWIW, I think deleting children inthe order they were added makes the most
sense. If you need your backwards behavior you are really implying that B is a
child of A, and if created as such, you would get the behavio
Hi,
On Tue, Jun 12, 2012 at 8:37 PM, Jochen Becher wrote:
> Hi,
>
> Think of the following code:
>
>
> QObject *parent = new QObject();
> QObject *childA = new QObject(parent);
> QObject *childB = new QObject)parent);
>
> delete parent;
>
>
> In which order would you expect childA and childB get
Hi,
Think of the following code:
QObject *parent = new QObject();
QObject *childA = new QObject(parent);
QObject *childB = new QObject)parent);
delete parent;
In which order would you expect childA and childB gets deleted? I would
expect childB first and childA second. This would be same beha
QApplication needs to be instantiated before you do any other call to Qt
functionalities.
Therefore i assume to put it in a subclass of the QMainWindow is the wrong
place.
Try to move it into your main() function.
Stefan
On 12.06.2012, at 22:20, "Scott Aron Bloom" wrote:
> Put up sample cod
Put up sample code to duplicate the issue...
From: noru...@me.com [mailto:noru...@me.com]
Sent: Tuesday, June 12, 2012 11:11 AM
To: Scott Aron Bloom
Subject: Re: [Interest] Application crash with QLocale
Yes, the class is called from a function in a QMainWindow subclass.
The Problem al
Addendum: Win7-64 has a "program files" and "program files (x86)" folder
distinction. I'm betting that is not taken into account.
From: Jason H
To: Guenther Boelter ; "interest@qt-project.org"
Sent: Tuesday, June 12, 2012 2:05 PM
Subject: Re: [Interest] win
This is going to be some flaw in programming of the application. You expect a
call to succeed and don't bother to check the result. I'm guessing you're
opening a socket or attempting to read/write a file that you don't have access
too. Either way, the application is poorly programmed.
My money
On terça-feira, 12 de junho de 2012 17.48.14, Jan Kundrát wrote:
> > You're entirely on your own if you touch the internals. Behaviour might
> > change in any release.
>
> Fair enough. The better question is then "any chances of making these
> two functions public in a 4.x release"?
None.
If the
This was sent to a Qt list why?
From: Thomas Meyer
To: interest@qt-project.org
Sent: Tuesday, June 12, 2012 1:39 PM
Subject: [Interest] Boost Python
Hi,
I want to build a sample .dll with Boost v1.49 and Python (v3.2.3 or
2.7.3)
in the Qt Creator v2.5.
Hi,
I want to build a sample .dll with Boost v1.49 and Python (v3.2.3 or 2.7.3)
in the Qt Creator v2.5.0, Qt v4.8.1, Visual Studio 2010 Express and MS
Windows 7.
When I build my project (tried it with both python versions),
I get a compile error:
D:\boost_1_49_0\boost\python\detail\wrap_python.h
Has your QApplication been instantiated yet?
Scott
From: interest-bounces+scott.bloom=onshorecs@qt-project.org
[mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of
NoRulez
Sent: Tuesday, June 12, 2012 10:25 AM
To: Qt Project MailingList
Subject: Re: [Interes
It seems to work when m_locale is a global variable:namespace { QLocale m_locale;}But I don't know why. Does anyone has an idea what the problem could be?Thanks in advanceAm 12. Jun 2012 um 19:12 schrieb NoRulez :Hi,in the debug version I get the following message when creating a QLocale::system
Hi,in the debug version I get the following message when creating a QLocale::system(): ASSERT: "index <= locale_data_size" in file tools/qlocale.cpp, line 601In the release version the application crashes with a runtime error.The only thing I do was to set a member variable:QLocale m_locale;Here is
On 6/11/2012 12:35 PM, Guenther Boelter wrote:
> On 06/12/2012 01:27 AM, Paul Miller wrote:
>> On 6/11/2012 12:24 PM, Guenther Boelter wrote:
>>> On 06/12/2012 12:18 AM, Paul Miller wrote:
Well this is an odd one. We recently moved from Qt 4.5.3 to 4.7.4. Our
application crashes during st
Hi Thiago,
On 06/12/12 17:31, Thiago Macieira wrote:
> There isn't a way. The QTimezone feature has been pending for years.
Right, it seems that the utcOffset won't survive a serialization to
QDataStream (using Qt 4.8.1):
QDateTime blah = QDateTime::fromString("1997-07-16T19:20:30+09:45",
Qt
On terça-feira, 12 de junho de 2012 16.26.08, Jan Kundrát wrote:
> I'd like to save them into a QDataStream for further retrieval and after
> loading them back, I'd love to show them both converted to the user's
> local time and also in the original format, including the original time
> zone inform
On Tue, Jun 12, 2012 at 8:20 PM, BRM wrote:
> > From: Gopalakrishna Bhat
>
> >Hi,
> >
> >
> >I am trying to use QTcpServer to accept connection from only one client
> at a time, but i'm not able to do so.
> >
> >
> >I tried setting setMaxPendingConnections to one but then
> also waitForConnected
> From: Gopalakrishna Bhat
>Hi,
>
>
>I am trying to use QTcpServer to accept connection from only one client at a
>time, but i'm not able to do so.
>
>
>I tried setting setMaxPendingConnections to one but then also waitForConnected
>on the second client returned true. I want waitForConnected to
Hi, my application receives some dates in textual formats from the
Internet; some of them are in RFC2822's format "Mon, 11 Jun 2012
13:35:56 -0700" (and other variants due to backward compatibility),
others in RFC3501's "date-time" format which is "07-Mar-2007 15:03:32
+0100".
I'd like to save the
On terça-feira, 12 de junho de 2012 16.18.25, Gopalakrishna Bhat wrote:
> Yeah, that is the reason. I get that signal. Any way we can get my usecase
> to work?
No, it's not possible because it's a race condition.
Even if we tell the operating system to keep at most one socket in queue,
between ac
On Tue, Jun 12, 2012 at 3:47 PM, Andre Haupt wrote:
> On Tue, Jun 12, 2012 at 02:44:54PM +0530, Gopalakrishna Bhat wrote:
> > Hi,
> >
> > I am trying to use QTcpServer to accept connection from only one client
> at
> > a time, but i'm not able to do so.
> >
> > I tried setting setMaxPendingConnec
On Tue, Jun 12, 2012 at 02:44:54PM +0530, Gopalakrishna Bhat wrote:
> Hi,
>
> I am trying to use QTcpServer to accept connection from only one client at
> a time, but i'm not able to do so.
>
> I tried setting setMaxPendingConnections to one but then
> also waitForConnected on the second client r
On 11.06.2012 23:06, Thiago Macieira wrote:
> They'll just have worse code generated. But if they're using compilers that
> are 3 years old or more, it's their own fault.
>
> Most embedded systems can use GCC 4.6 or even 4.7. Certainly the most common
> processors can.
Well, I think it doesn't mat
Hi,
I am trying to use QTcpServer to accept connection from only one client at
a time, but i'm not able to do so.
I tried setting setMaxPendingConnections to one but then
also waitForConnected on the second client returned true. I want
waitForConnected to return true only for the first client.
A
41 matches
Mail list logo