Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Si può prendere il colore da QFontDialog?
Forum Updated to NodeBB v4.3 + New Features

Si può prendere il colore da QFontDialog?

Scheduled Pinned Locked Moved Italian
2 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    user198907
    wrote on last edited by
    #1

    Ciao ,
    Sto usando QFontDialog in Qt 5.3. Come posso prendere il colore del testo ?

    QFont doFont()
    {
    bool ok;
    QFont font = QFontDialog::getFont(
    &ok,
    QFont( "Arial", 18 ),
    this,
    tr("Pick a font") );
    if( ok )
    {
    return( font );
    }
    }
    QFont font= doFont();
    QString style = QString("font-family:' %1 '").arg(font.family());

    Grz in anticipo.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Ciao,

      IMO il colore non fa parte delle informazioni di un Font.

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved