[Qt-interest] qtmutex locked - application waits??

Thiago Macieira thiago at kde.org
Tue May 25 20:51:21 CEST 2010


Em Terça-feira 25. Maio 2010, às 19.26.53, caius ligarius escreveu:
> I thought I was using the GUI class outside of the GUI thread but when I
> commented it but the problem didn't go away!
> 
> Please refer to attached file bagviewer.cpp. Again this happens when i try
> to call setComboBoxIndex in bagviewer.cpp

Please read again what I asked for:
 - small
 - self-contained
 - self-explanatory
 - compileable (I forgot to say, but self-contained should include this)

Combined, your files have 800 lines of code. You need to shrink that to 200 
(including the main() function) before I'll have a look.

And your bagviewer.h has #include to files that you didn't attach. Please make 
sure you remove all the includes except for what you send.

Also, please indicate which line causes the warning to be emitted.

I will not look at your issue until you do as I ask. (Which doesn't imply I 
will the moment you do: this is just a necessary condition, not a sufficient 
condition).

> On Mon, May 24, 2010 at 11:48 PM, Thiago Macieira <thiago at kde.org> wrote:
> > Em Terça-feira 25. Maio 2010, às 03.12.30, caius ligarius escreveu:
> > > Does anybody know why this is happening?
> > 
> > Wild guess: you're accessing the GUI classes from outside the GUI thread.
> > That
> > is not allowed in Qt.
> > 
> > If this is not the case, can you produce a small, self-contained, self-
> > explanatory testcase of the issue?

-- 
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/20100525/f0d82aa2/attachment.bin 


More information about the Qt-interest-old mailing list