Re: [TFUI] testing Qt code
David Dibben <dibben-duq3b/zSlLYXvkv/[email protected]>
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Organization | The Japan Research Institute, Ltd. |
| Message-ID | <[email protected]> |
> dammak rafik wrote: > > table respecting MVC pattern.two for testing GUI how > > I must do?test > > tools for this case?I am developing a kind of unit > > testing (no with > > cppunit) and I like respect this method in GUI > > development. We have been using Qt and CppUnit together with out too many problems. On Tue, 11 May 2004 15:15:58 -0700 (PDT) Phlip <phlipcpp-/[email protected]> wrote: > Your first question: What is the Qt equivalent of > gtk_main(), and how to not call it? I don't think that there is an equivalent in Qt. The main event loop is generally started by calling the exec() function on QApplication. SInce this is usually called from main() it is easy not to call in the tests.. > The second question: How to optionally call it? Much of the testing of the interface can be done without using the event handling mechanisms of Qt. If it is necessary to test the results of events then QApplication::processEvents() allows all pending events to be processed and then returns control to the test. Regards David ------------------------ Yahoo! Groups Sponsor ---------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM ---------------------------------------------------------------------~-> To unsubscribe, email: TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/TestFirstUserInterfaces/ <*> To unsubscribe from this group, send an email to: TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/