Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104696

QFontDialog:: selectedFont and fontSelected always returns one font

    XMLWordPrintable

Details

    • macOS
    • 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

        Activity

          People

            vestbo Tor Arne Vestbø
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes