Did you try
instead of txtScrollEdit->setFontQt Code:
txtScrollEdit->setCurrentFont(tmpFont);To copy to clipboard, switch view to plain text mode
Did you try
instead of txtScrollEdit->setFontQt Code:
txtScrollEdit->setCurrentFont(tmpFont);To copy to clipboard, switch view to plain text mode
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
has a same effect as setFont().Qt Code:
txtScrollEdit->setCurrentFont(tmpFont);To copy to clipboard, switch view to plain text mode
And the second I have a need to change whole text font family not from a current cursor point.
So, Sir! What should I do for that.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
try QTextDocument::setDefaultFont (if you are using a QTextEdit for example)
Dear Sir!
I have depicted it; but unable to find the way. I have searched one way but it is not well. for setting the Hindi language first I select the Hindi SCIM setup in Linux, I type in the txtScrollEdit QTextEdit It types in Hindi; but writing system is still in Hindi by default. How a way I set the writingSystem of QFont Dialog. Please suggest me some presize hint.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
I know nothing about Hindi fonts, but I suggested the demo for you to see how to properly apply font changes. You're particularly interested in TextEdit::textFamily(), TextEdit::textSize() etc. and TextEdit::mergeFormatOnWordOrSelection().
J-P Nurmi
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
A quick look suggests to me that there is no way to set it. Try searching Task-Tracker and send a bug report if no relevant bug is found.
J-P Nurmi
Yes! You are thinking right. But I am not understanding it is provided in QFontComboBox using with; but not in QFontDialog.Qt Code:
To copy to clipboard, switch view to plain text mode
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
It only filter the Font Families; but does not change the required language. However still it is a problem of setting the writingSystem of QFontDialogBox.void setWritingSystem ( QFontDatabase::WritingSystem script )
This property holds the writing system that serves as a filter for the combobox.
If script is QFontDatabase::Any (the default), all fonts are listed.
Please view the experts the problem & suggest;
But how a way I am swiching languages according to writingSystem & font families.
Last edited by jpn; 23rd January 2008 at 10:18. Reason: changed [code] to [quote]
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
Bookmarks