[Qt-interest] unsubscribe
Dominic Blais
dominic at snisit.com
Wed May 6 04:35:31 CEST 2009
On May 5, 2009, at 7:29 PM, qt-interest-request at trolltech.com wrote:
> Send Qt-interest mailing list submissions to
> qt-interest at trolltech.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> or, via email, send a message with subject or body 'help' to
> qt-interest-request at trolltech.com
>
> You can reach the person managing the list at
> qt-interest-owner at trolltech.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qt-interest digest..."
>
>
> Today's Topics:
>
> 1. Re: [OT] Request to stick to the netiquette (Stephen Jackson)
> 2. Re: QDialog behavior (Tony Thompson)
> 3. Re: QDialog behavior (Scott Aron Bloom)
> 4. Re: QDialog behavior (Raja Sekharan)
> 5. Re: postgres bytea (Andrew Maclean)
> 6. Re: QDialog behavior (Tony Thompson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 5 May 2009 23:14:29 +0100
> From: Stephen Jackson <spjackson42 at gmail.com>
> Subject: Re: [Qt-interest] [OT] Request to stick to the netiquette
> To: qt-interest at trolltech.com
> Message-ID:
> <43fef2450905051514s1b9a18c2m4eae4f5da79f2813 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 05/05/2009, Srdjan Todorovic wrote:
>> 2009/5/5 Stephen Jackson
>>
>>
>>> Since many disclaimers
>>> amount to "do not read this or act upon it", the ultimate author of
>>> the disclaimer gets precisely what they ask for - not what the
>>> victim
>>> wants.
>>
>>
>> I think you are wrong here. If that was the case, then *no-one* would
>> be able to communicate between companies/clients/entities/
>> communities,
>> because as you say, the disclaimer would instruct *everyone* to not
>> read the email.
>>
>
> This may surprise you, but I don't think I'm wrong, specifically in
> the context of a mailing list, which is the context in which I made my
> comment.
>
>>
>> Where did you get the "do not read this or act upon it" from? These
>> usually come from the "if you are not the intended recipient" part of
>> the disclaimer. Since we can see the intended recipient from To: and
>> CC:, that clause does not apply.
>>
>
> Although by and large disclaimers are meaningless verbiage, they are
> intended to carry legal weight. How do I know that I am the "intended
> recipient" as defined by the relevant jurisdiction (whatever that is)?
> First, the sender may have *intended* to send it somewhere else and
> sent it to the list by mistake. How can I be *certain*? Second, the
> message is not addressed directly to me, so it is a matter of
> interpretation as to whether subscribers to a mailing list class as
> "intended recipients". How can I resolve this area of doubt? Only by
> asking either the sender's legal advisor or my own or a court. I am
> not going to take any of those steps; better to shove the whole dross
> into my spam folder and get on with something more interesting, such
> as reading postings that do not carry this noise.
>
>> As for the list being public - anyone that accesses the public
>> archives, would in my oppinion, become an automatic recipient, even
>> if
>> temporarily. Eg. I have a problem with class QFooBarZot. I search the
>> archives and see a post that fixes the problem but has a deisclaimer.
>> I'm automatically temporarily part of the Qt community at that
>> moment,
>> and the disclaimer is automatically valid (at least for a short
>> time).
>> That's just how I view it. Others will likely dissagree ;)
>>
>
> But does becoming an "automatic" recipient entail becoming an
> *intended* recipient? Another trip to the courthouse to find out? I'd
> rather not.
>
> We are wandering too far off topic now. Let's just agree to differ.
>
> Regards,
>
> Stephen Jackson
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 5 May 2009 18:51:24 -0400
> From: "Tony Thompson" <Tony.Thompson at stone-ware.com>
> Subject: Re: [Qt-interest] QDialog behavior
> To: <qt-interest at trolltech.com>
> Message-ID:
> <CEB95FDE3027B54481716F79E9CA785D01100F8C at mssb01.stone-ware.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Can anyone help me with this? (I sent it week so ago and I really
> haven't been able to figure out my issue)
>
> I am working on an application that has a simple dialog. I created
> the
> dialog in Qt Creator and set a title for the dialog. When the dialog
> displays on Windows and OS X, the title bar shows fine. On Linux, I
> get
> a dialog with no title bar or frame. This seems like it would be easy
> enough to figure out but, searching the archives and such has only
> revealed questions about removing the title bar. Why does my dialog
> behave differently on Linux and how can I get the title bar and
> frame to
> display properly?
>
> Thanks
> Tony
>
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 5 May 2009 16:20:35 -0700
> From: "Scott Aron Bloom" <Scott.Bloom at sabgroup.com>
> Subject: Re: [Qt-interest] QDialog behavior
> To: "Tony Thompson" <Tony.Thompson at stone-ware.com>,
> <qt-interest at trolltech.com>
> Message-ID: <7DB34253D57D2B47AEB656218FE6AAEF171579 at onshorecs.com>
> Content-Type: text/plain; charset="us-ascii"
>
> How are you creating the dialog...
>
> Create a simple project, .ui, .cpp, .h, .pro that duplicates the
> problem, and post it...
>
> Scott
>
>> -----Original Message-----
>> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
>> bounces at trolltech.com] On Behalf Of Tony Thompson
>> Sent: Tuesday, May 05, 2009 3:51 PM
>> To: qt-interest at trolltech.com
>> Subject: Re: [Qt-interest] QDialog behavior
>>
>> Can anyone help me with this? (I sent it week so ago and I really
>> haven't been able to figure out my issue)
>>
>> I am working on an application that has a simple dialog. I created
> the
>> dialog in Qt Creator and set a title for the dialog. When the dialog
>> displays on Windows and OS X, the title bar shows fine. On Linux, I
> get
>> a dialog with no title bar or frame. This seems like it would be
>> easy
>> enough to figure out but, searching the archives and such has only
>> revealed questions about removing the title bar. Why does my dialog
>> behave differently on Linux and how can I get the title bar and frame
> to
>> display properly?
>>
>> Thanks
>> Tony
>>
>> This message (and any associated files) is intended only for the
>> use of the individual or entity to which it is addressed and may
>> contain information that is confidential, subject to copyright or
>> constitutes a trade secret. If you are not the intended recipient
>> you are hereby notified that any dissemination, copying or
>> distribution of this message, or files associated with this message,
>> is strictly prohibited. If you have received this message in error,
>> please notify us immediately by replying to the message and deleting
>> it from your computer. Messages sent to and from Stoneware, Inc.
>> may be monitored.
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 6 May 2009 05:11:35 +0530
> From: Raja Sekharan <websweetweb at gmail.com>
> Subject: Re: [Qt-interest] QDialog behavior
> To: qt-interest at trolltech.com
> Message-ID:
> <310a15a90905051641l6595a2b7s4348113f87693309 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Could be that the parent of the dialog is not set properly. Or the
> parent is
> a widget like MDIArea?
> I once set an MDIArea as a parent of a dialog box. When the dialog was
> 'exec'ed, I saw only the form elements on the dialog not the form or
> the
> title bar itself. It looked like the dialog's elements were on the
> MDIArea.
> Are you facing a similar problem? Could you elaborate/ give a
> screenshot?
>
> Rajasekharan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.trolltech.com/pipermail/qt-interest/attachments/20090506/e0316d1b/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Wed, 6 May 2009 10:02:52 +1000
> From: Andrew Maclean <andrew.amaclean at gmail.com>
> Subject: Re: [Qt-interest] postgres bytea
> To: Diego Schulz <dschulz at gmail.com>
> Cc: qt-interest at trolltech.com
> Message-ID:
> <e7ddbec60905051702yf2d48a3oeaa64f6ab8a2df96 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I agree that it would be nice if QPSQL driver supported this
> transparently - when warnings like this begin to appear it may mean
> that this method of escaping may become deprecated.
>
>
> Andrew
>
> On Wed, May 6, 2009 at 1:33 AM, Diego Schulz <dschulz at gmail.com>
> wrote:
>> On Tue, May 5, 2009 at 12:02 AM, Andrew Maclean
>> <andrew.amaclean at gmail.com> wrote:
>>> Thankyou for your help Diego. It was a good example and it really
>>> helped me.
>>> I cannot see a way to get rid of the warnings from pg server
>>> regarding the use of \E'...' notation. If you look at the warning
>>> message at the end of my test this seems to be a QT thing.
>>>
>>>
>>> So if anyone knows a way to get rid of this warning, please let us
>>> know.
>>>
>>>
>>> I have managed to get a solution as follows:
>>>
>>> The table is defined by:
>>> CREATE TABLE resource_store
>>> (
>>> ?content_id serial NOT NULL,
>>> ?description text,
>>> ?"content" bytea,
>>> ?CONSTRAINT content_id_rs_pk PRIMARY KEY (content_id)
>>> );
>>>
>>> To insert a bytea value into the table:
>>>
>>> ? ? ?QSqlDatabase db = QSqlDatabase::database();
>>> ? ? ?bool blob = db.driver()->hasFeature(QSqlDriver::BLOB);
>>> ? ? ?bool unicode = db.driver()->hasFeature(QSqlDriver::Unicode);
>>> ? ? ?if ( db.open() && blob && unicode )
>>> ? ? ?{
>>> ? ? ? ?QApplication::setOverrideCursor(Qt::BusyCursor);
>>> ? ? ? ?// read in the data
>>> ? ? ? ?QFile f(fileName);
>>> ? ? ? ?if(f.open(QIODevice::ReadOnly)){
>>> ? ? ? ? ?QVariant binaryData = f.readAll();
>>>
>>> ? ? ? ? ?QString s = "insert into ";
>>> ? ? ? ? ?s += table;
>>> ? ? ? ? ?s += "(description, content) "
>>> ? ? ? ? ? ?"VALUES ( :description, :content )";
>>> ? ? ? ? ?QSqlQuery query;
>>> ? ? ? ? ?query.prepare(s);
>>> ? ? ? ? ?query.bindValue(":description", description);
>>> ? ? ? ? ?query.bindValue(":content", binaryData);
>>>
>>> ? ? ? ? ?QSqlDatabase::database().transaction();
>>> ? ? ? ? ?if (!query.exec())
>>> ? ? ? ? ?{
>>> ? ? ? ? ? ? ?QApplication::restoreOverrideCursor();
>>> ? ? ? ? ? ? ?QMessageBox msgBox;
>>> ? ? ? ? ? ? ?msgBox.setText("SQL command failed\n" +
>>> query.lastError().text());
>>> ? ? ? ? ? ? ?msgBox.exec();
>>> ? ? ? ? ?}
>>> ? ? ? ? ?QSqlDatabase::database().commit();
>>> ? ? ? ?}
>>> ? ? ? ?QApplication::restoreOverrideCursor();
>>> ? ? }
>>>
>>>
>>> To get a bytea value from the table;
>>>
>>>
>>> ? ? ?QSqlDatabase db = QSqlDatabase::database();
>>> ? ? ?if ( db.open() )
>>> ? ? ?{
>>> ? ? ? ?QApplication::setOverrideCursor(Qt::BusyCursor);
>>> ? ? ? ?// Saving to a file called path/name
>>> ? ? ? ?path += "/";
>>> ? ? ? ?path += name;
>>>
>>> ? ? ? ?QString s = "select";
>>> ? ? ? ?s += " description, content from ";
>>> ? ? ? ?s += table;
>>> ? ? ? ?s += " where description = :description";
>>> ? ? ? ?QSqlQuery query;
>>> ? ? ? ?query.prepare(s);
>>> ? ? ? ?query.bindValue(":description", description);
>>> ? ? ? ?QSqlDatabase::database().transaction();
>>> ? ? ? ?if (!query.exec())
>>> ? ? ? ?{
>>> ? ? ? ? ? ?QApplication::restoreOverrideCursor();
>>> ? ? ? ? ? ?QMessageBox msgBox;
>>> ? ? ? ? ? ?msgBox.setText("SQL command failed\n" +
>>> query.lastError().text());
>>> ? ? ? ? ? ?msgBox.exec();
>>> ? ? ? ?}
>>> ? ? ? ?QSqlDatabase::database().commit();
>>> ? ? ? ?if (query.next())
>>> ? ? ? ?{
>>> ? ? ? ? ?QFile f(path);
>>> ? ? ? ? ?if(f.open(QIODevice::WriteOnly))
>>> ? ? ? ? ?{
>>> ? ? ? ? ? ?QVariant binData = query.value(1);
>>> ? ? ? ? ? ?f.write(binData.toByteArray());
>>> ? ? ? ? ?}
>>> ? ? ? ?}
>>> ? ? ? ?QApplication::restoreOverrideCursor();
>>> ? ? ?}
>>>
>>>
>>> ?However there is one remaining issue, relating to inserting the
>>> bytea
>>> value. When the above code runs I get this message:
>>>
>>> WARNING: ?nonstandard use of \\ in a string literal
>>> LINE 1: EXECUTE qpsqlpstmt_1 ('zzz', '\\377\\330\\377\\340\\000\
>>> \020...
>>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^
>>> HINT: ?Use the escape string syntax for backslashes, e.g., E'\\'.
>>>
>>
>> This warning is exactly what I was talking about :)
>> Note the HINT suggesting the use of ? E'\\..' ?notation (postgresql
>> specific).
>> I think it would be nice if QPSQL driver supported this
>> transparently.
>>
>> The only way to get rid of the warning that I'm aware of is inserting
>> base64 encoded blobs, actually inserting a long ASCII string instead
>> of binary data.
>>
>> regards,
>>
>>
>> diego
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
> Centre for Autonomous Systems
> The Rose Street Building J04
> The University of Sydney 2006 NSW
> AUSTRALIA
> Ph: +61 2 9351 3283
> Fax: +61 2 9351 7474
> URL: http://www.acfr.usyd.edu.au/
> ___________________________________________
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 05 May 2009 22:28:58 -0400
> From: "Tony Thompson" <Tony.Thompson at stone-ware.com>
> Subject: Re: [Qt-interest] QDialog behavior
> To: <qt-interest at trolltech.com>
> Message-ID: <1241576938.8347.92.camel at swtet-linux>
> Content-Type: text/plain; charset="Windows-1252"
>
> Well, now I feel really stupid....in my search for how the parent was
> set for my QDialog, I found that I was setting two window flags:
>
> Qt::CustomizeWindowHint | Qt::WindowTitleHint
>
> Not sure I remember why I was doing that but when I removed them,
> everything started working on Linux then. It is odd that these flags
> had no effect on the dialog behavior on Windows or OS X but made it
> display differently on Linux.
>
> My QDialog does not have a parent, BTW. My application only has a
> QSystemTrayIcon as its interface.
>
> One other odd thing I have noticed about the dialog. It is set as a
> modal dialog which Linux seems to honor. My system tray icon context
> menu no longer works. On Windows and Mac, it doesn't matter if the
> dialog is modal or not, I can still use the context menu on the system
> tray icon.
>
> Nice that I start out with a Linux only issue and now the issue
> switches
> to the other two platforms and Linux works fine.
>
> On Wed, 2009-05-06 at 05:11 +0530, Raja Sekharan wrote:
>> Could be that the parent of the dialog is not set properly. Or the
>> parent is a widget like MDIArea?
>>
>>
>> I once set an MDIArea as a parent of a dialog box. When the dialog
>> was
>> 'exec'ed, I saw only the form elements on the dialog not the form or
>> the title bar itself. It looked like the dialog's elements were on
>> the
>> MDIArea. Are you facing a similar problem? Could you elaborate/
>> give a
>> screenshot?
>>
>>
>> Rajasekharan
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>
>
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> End of Qt-interest Digest, Vol 6, Issue 61
> ******************************************
More information about the Qt-interest-old
mailing list