[Qt-interest] QWidget::create issue in x11

Thiago Macieira thiago at kde.org
Fri Aug 6 15:46:39 CEST 2010


On Friday 6. August 2010 09.59.42 机械唯物主义 : linjunhalida wrote:
> I want use qt to control some other windows, so I write this code:
> 
> #define protected public //just for test
> ...
> WId id = 0x00000001 //some real wid
> QWidget w;
> w.create(id, false, false);
> w.hide();
> 
> after I run this code, the window crashes, and I got:
> :X Error: BadAccess (attempt to access private resource denied) 10
> 
> I'm using ubuntu10.04 with qt4, anyone has sample in QWidget::create?
> 
> http://stackoverflow.com/questions/3423013/qwidget-create-issue-in-x11

What are you trying to do?

Are you trying to get QWidget to paint on an existing X11 Window? Does that 
window belong to your process?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100806/091e60a3/attachment.bin 


More information about the Qt-interest-old mailing list