[Qt-interest] Well, a simple question (erpin2006)
erpin2006
erpin2006 at 126.com
Wed Oct 28 15:21:20 CET 2009
Thanks for your help. I will try with QLabel. ;)
2009-10-28
erpin2006
发件人: qt-interest-request
发送时间: 2009-10-28 21:49:05
收件人: qt-interest
抄送:
主题: Qt-interest Digest, Vol 11, Issue 226
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. Any way to create a "Distribution" in custom installation
location (Mike Jackson)
2. Re: Modbus (Mirko Viviani)
3. Re: QPainter: It is not safe to use drawPixmap() outside the
GUI thread (Mihail Naydenov)
4. Well, a simple question (erpin2006)
5. Re: Well, a simple question (Sean Harmer)
6. Re: Well, a simple question (Vincent LEFORT)
----------------------------------------------------------------------
Message: 1
Date: Wed, 28 Oct 2009 09:02:01 -0400
From: Mike Jackson <imikejackson at gmail.com>
Subject: [Qt-interest] Any way to create a "Distribution" in custom
installation location
To: qt-interest at trolltech.com
Message-ID: <hc9fc9$vvu$1 at eple.troll.no>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I think this has been asked but I can not find the answer on the list
archives. Basically I need to precompile qt for another person working
on my project. Due to the restrictions on their PC they can not run
installers or set environment variables and can basically only have
items located in their home directories (Vista). I would like to
compile up Qt 4.5.3 using VS 2005 and supply them with what would
normally get installed if I had pulled the precompiled binaries for Qt
(minus the MinGW stuff).
So I guess the real question is what can I get rid of after I build
Qt in order to get the size and shear number of files down to a
reasonable level.
Thanks
Mike Jackson
------------------------------
Message: 2
Date: Wed, 28 Oct 2009 14:08:18 +0100
From: Mirko Viviani <furetto76 at gmail.com>
Subject: Re: [Qt-interest] Modbus
To: "Shaun van Wyngaard (Home)" <shaungvw at gmail.com>
Cc: qt-interest at trolltech.com
Message-ID:
<f61aedfd0910280608i35e09f13t1c099bfdeb897461 at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"
Modbus through RS232 or Modbus through TCP-IP ?
Both cases, is just a matter of sending (a byte array) and receiving (a byte
array).
RS232 involves also the calculus of CRC.
2009/10/26 Shaun van Wyngaard (Home) <shaungvw at gmail.com>
> Has anyone done a Modbus implementation using Qt?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
"?Machines take me by surprise with great frequency.? A. Turing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qt-interest/attachments/20091028/1e04594a/attachment-0001.html
------------------------------
Message: 3
Date: Wed, 28 Oct 2009 06:19:58 -0700 (PDT)
From: Mihail Naydenov <mlists at ymail.com>
Subject: Re: [Qt-interest] QPainter: It is not safe to use
drawPixmap() outside the GUI thread
To: Serge <mb0 at km.ru>, qt-interest at trolltech.com
Message-ID: <94321.67300.qm at web59809.mail.ac4.yahoo.com>
Content-Type: text/plain; charset=us-ascii
----- Original Message ----
> From: Serge <mb0 at km.ru>
> To: qt-interest at trolltech.com
> Sent: Wed, October 28, 2009 1:36:59 PM
> Subject: [Qt-interest] QPainter: It is not safe to use drawPixmap() outside the GUI thread
>
> Hello,
>
> I have QT application, which renders SVG on QPixmap in a separate
> thread. Separate thread is needed because rendering takes a lot of time.
> this application was developed in QT 4.3.3
> it worked fine without warnings.
>
> now i built it in QT 4.5.2
> when it works in debug output window i can see a lot of messages:
> QPainter: It is not safe to use drawPixmap() outside the GUI thread
>
> Is it critical warning?
> Can i leave rendering the same or i need to rewrite rendering so that it
> would not use QPixmap? What thread-safe alternative of using QPixmap?
You should use QImage instead.
Than you can drawImage() or QPixmap::fromImage() if you really need a pixmap (faster onscreen)
MihailNaydenov
>
> Thank you!
>
> --
> Serge
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
------------------------------
Message: 4
Date: Wed, 28 Oct 2009 21:39:01 +0800
From: "erpin2006" <erpin2006 at 126.com>
Subject: [Qt-interest] Well, a simple question
To: "qt-interest" <qt-interest at trolltech.com>
Message-ID: <200910282138528120287 at 126.com>
Content-Type: text/plain; charset="us-ascii"
I'd like to put an image controller on the main dialog. Is there already any widget which can hold the image ?
First time to post a message
2009-10-28
erpin2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qt-interest/attachments/20091028/e26e02ca/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1662 bytes
Desc: not available
Url : http://lists.trolltech.com/pipermail/qt-interest/attachments/20091028/e26e02ca/attachment-0001.gif
------------------------------
Message: 5
Date: Wed, 28 Oct 2009 13:46:02 +0000
From: Sean Harmer <sean.harmer at maps-technology.com>
Subject: Re: [Qt-interest] Well, a simple question
To: qt-interest at trolltech.com
Message-ID: <200910281346.02837.sean.harmer at maps-technology.com>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 28 Oct 2009 13:39:01 erpin2006 wrote:
> I'd like to put an image controller on the main dialog. Is there already
> any widget which can hold the image ? First time to post a message
Try a QLabel.
Or if you need more specialised interaction just derive your own class from
QWidget and override the paintEvent() function. In there you can then use
QPainter calls to do whatever drawing you like.
If you have more questions just come back to the list.
Good luck,
Sean
------------------------------
Message: 6
Date: Wed, 28 Oct 2009 14:48:00 +0100
From: Vincent LEFORT <vincent.lefort at gmail.com>
Subject: Re: [Qt-interest] Well, a simple question
To: erpin2006 <erpin2006 at 126.com>
Cc: qt-interest <qt-interest at trolltech.com>
Message-ID:
<3a98c5000910280648j75fd3f9bue4e0cfa7da50010c at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello and Welcome.
If you want a widget for displaying an image : QLabel with the slot
setPixmap. If you have a QImage, use QPixamp::fromImage(...) to convert it
in QPixmap.
Regards.
Vincent
On Wed, Oct 28, 2009 at 14:39, erpin2006 <erpin2006 at 126.com> wrote:
> I'd like to put an image controller on the main dialog. Is there already
> any widget which can hold the image ?
> First time to post a message
>
> 2009-10-28
> ------------------------------
> erpin2006
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qt-interest/attachments/20091028/4462d216/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1662 bytes
Desc: not available
Url : http://lists.trolltech.com/pipermail/qt-interest/attachments/20091028/4462d216/attachment.gif
------------------------------
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
End of Qt-interest Digest, Vol 11, Issue 226
********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091028/5a3be5db/attachment.html
More information about the Qt-interest-old
mailing list