[bt-devel] I Need Help with KFontDialog

bt-devel@crosswire.org bt-devel@crosswire.org
Mon, 21 Feb 2000 22:38:44 GMT


Thomas J. Philpot writes:

Thanks Tom!  Interestingly enough it is now irrelevant (but I will keep the
information for later.

For anyone that is interested, I have changed directions again, because I
decided to use radio buttons for the places where fonts are used and
KFontChooser to select them.

A "look and feel" dialog is now in CVS, I will be adding the functionality
this afternoon.

The fonctionality will be:

When the dialog is opened, the fonts will be read.  As each radio button is
pressed the appropriate font will be fed to the KFontChooser.  When the
font is changed it will be stored in memory, and written to the config when
OK or Apply are pressed.

Do we want to explicitly allow the selection of fonts for menus and other
areas of the application?  Just let me know...
 
> > KFontDialog(QWidget *parent=0l,const char *name=0,bool modal=false,bool
> > onlyFixed=false,constQStringList &fontlist=QStringList(),bool
> > makeFrame=true)
> > 
> > The parent is no problem as it works, however the second parameter does not
> > work no matter what I try to do.
> > 
> > I am attempting to create a modal dialog when a button is pressed, but I
> > can not seem to get it to work.  How do I specify the object's name in this
> > argument list?
> 
> Try passing it either a literal string such as "My Dialog Box" or a variable
> defined as follows:
> const char* name = "My Dialog box";
> 
> Hope that helps...

--
   Darwin Gregory

   Help California define marriage the way God does...
   Support Proposition 22!   Vote YES on Prop 22!