Qt-interest Archive, March 2002
QDialog and WGroupLeader Flag
Message 1 in thread
I've asked a similar question on here before regarding the WGroupLeader flag
and QWizard. I didn't receive a response, however, I finally got it
working. Here is my current problem...
I have several dialog classes that derive from QDialog. Each of these has a
button which allows the user to access an html based Help screen. I want
the QDialog to be modal, but the user should be able to clink on the html
links on the Help Screen if they push the help button. I have tried using
the WType_TopLevel | WGroupLeader flags which worked with QWizard, but they
are not working for me now. My code is listed below.
>>>>PropertySheetDialog.cpp
PropertySheetDialog::PropertySheetDialog(const char *caption, const char
*helpID, bool modal, WFlags fl)
: QDialog(mainWindow, caption, modal, fl )
>>>>
called from another .cpp file
PropertySheetDialog propSheet(Type(), RttiClassName(typeid(*this)), false,
Qt::WType_TopLevel | Qt::WGroupLeader);
Is there a way to allow my user to access the Help while keeping the dialog
modal?
Thanks in advance...
Sherri D. Hodgson
Applied Research Associates, Inc.
962 W. John Sims Parkway
Niceville, FL 32578-1823
Phone: 850-678-5222
Fax: 850-678-6997
www.ara.com