[Qt-interest] two interfaces: gui, cl, inherit a QObject

Sean Harmer sean.harmer at maps-technology.com
Wed May 19 15:15:32 CEST 2010


Hi,

On Wednesday 19 May 2010 14:00:48 Gabriele Kahlout wrote:
> Hello,
> 
> I'm trying to have a ui Q_Object base that defines signals and slots both
> of my Window and CLInterface classes inherit, and re-implement.
> Window also needs to inherit QDialog. Yet I cannot, inherit from two
> qobjects. What do you suggest doing in this common scenario?

1). We have no idea what you are trying to achieve from that description. 
Please be more specific and maybe post some sample code for things that you 
have tried.

2). You design sounds like a mess. Try listing your requirements and the 
decomposing your system into classes with well-defined scopes. from the above 
it sounds like you want a class that does everything threading, dialogs, 
command line interface.

> Also, CLInterface should inherit QThread, so that it loops for stdin input.
> Any readyRead to stdin to avoid the thread, Thiago?

3). Thiago is not your slave. This is a list of volunteers.

4). Please remove your stupid signature. We do not care about the limitations 
of your mail system. All it is achieving is to annoy people. As mentioned 
before some people may well require greater than 48 hours to respond and 
having you re-post the same vague message is a waste of people's time and 
bandwidth.

Please post a real concrete question once you have fixed that damn signature 
which is a puzzle in itself.

Regards,

Sean



More information about the Qt-interest-old mailing list