Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.15.8, 6.3.1
-
-
8f38efc014 (qt/qtbase/6.3) 8f38efc014 (qt/tqtc-qtbase/6.3)
Description
QFontDialog::selectedFont() always returns same font no matter what font is selected in font dialog box.
This always returns QFont(.AppleSystemUIFont,13,-1,5,400,0,0,0,0,0,0,0,0,0,0,1)
QFont fontIni; QFontDialog* pDlgFont = new QFontDialog( fontIni, this ); pDlgFont->setOption( QFontDialog::DontUseNativeDialog ); pDlgFont->open(); connect( pDlgFont, &QFontDialog::fontSelected, [=](const QFont& font) { qDebug()<<font; qDebug()<<pDlgFont->selectedFont(); } );
Attachments
For Gerrit Dashboard: QTBUG-104696 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
420771,2 | QFontDialog: Check if native dialog is in use before using | dev | qt/qtbase | Status: MERGED | +2 | 0 |
420948,2 | QFontDialog: Check if native dialog is in use before using | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
420949,2 | QFontDialog: Check if native dialog is in use before using | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
421039,2 | QFontDialog: Check if native dialog is in use before using | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |