|  08-26-2013, 05:08 PM | #1 | 
| Evangelist            Posts: 404 Karma: 401800 Join Date: Jun 2011 Device: Pocketbook 902 / Ipad air/ kindle paperwhite | 
				
				QT dialog osX
			 
			
			Hey, I wrote a metadataplugin (BOL_NL) with a qtdialog popping up, if there were no matches, showing the rejected titles. Under windows no problems. Running in osX (snow leopard) gives troubles. Starting from terminal calibre-debug -e __some code: the dialog is shown and the debuginfo is printed in the terminal. Starting form terminal with the gui ( calibre-debug -g), the dialog doesnot show up at all, nore is the debug-information printed in the terminal. In the terminal only a few messeages appear: “QCocoaView handleTabletEvent: This tablet device is unknown (received no proximity event for it). Discarding event.” when on the first time I click a button inside calibre. (even when my plugin is not installed). I am not familiar with osX , and I am not that good with python and qt . Do I need some extra settings to get the output printed and the dialog shown? I am stuck at the moment, so any help or hint is appreciated. | 
|   |   | 
|  08-26-2013, 05:15 PM | #2 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			Do you have a Wacom tablet or mouse installed? I remember that Qt seems to have conflicts with the Wacom driver under OS X. See this thread.  G | 
|   |   | 
| Advert | |
|  | 
|  08-26-2013, 05:38 PM | #3 | |
| Evangelist            Posts: 404 Karma: 401800 Join Date: Jun 2011 Device: Pocketbook 902 / Ipad air/ kindle paperwhite | Quote: 
 I am running osX with vmware, no extra devices. I am not sure if the errormessages from cacoa are related to my troubles. I have received several messages from users that under osX the dialog is not shown. | |
|   |   | 
|  08-26-2013, 10:38 PM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			metadata plugins run in their own thread. In Qt you are not allowed to use the GUI in threads other than the main GUI thread. So you should not use any Qt code in your plugin.
		 | 
|   |   | 
|  09-01-2013, 06:50 AM | #5 | |
| Evangelist            Posts: 404 Karma: 401800 Join Date: Jun 2011 Device: Pocketbook 902 / Ipad air/ kindle paperwhite | Quote: 
  Is this only related to osX, because under windows the dialog is popping up (without problems). | |
|   |   | 
| Advert | |
|  | 
|  09-01-2013, 11:26 PM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			It can cause problems in any OS. The fact that it works in windows is likely an accident, you should not rely on it.
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Dialog Question | VydorScope | Writers' Corner | 17 | 08-04-2013 06:03 PM | 
| Help with dialog... | VydorScope | Writers' Corner | 9 | 06-14-2013 09:57 PM | 
| New 'Get books' dialog | elleryq | Development | 4 | 02-21-2013 01:37 AM | 
| New preferences dialog | kovidgoyal | Calibre | 22 | 09-07-2010 01:04 PM | 
| A dialog with Borders | Taylor514ce | Sony Reader | 45 | 06-19-2008 11:04 PM |