Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Oggetto Pixmap Combo
Forum Updated to NodeBB v4.3 + New Features

Oggetto Pixmap Combo

Scheduled Pinned Locked Moved Unsolved Italian
2 Posts 2 Posters 559 Views
  • 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.
  • PollyP Offline
    PollyP Offline
    Polly
    wrote on last edited by
    #1

    Salve mi vorrei creare un oggetto Qpixmap composto:
    creo un immagine sulla quale inserisco un testo, ma non saprei come fare,
    Chiedo se è possibile con Qpixmap o devo usare qualche escamotage?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      QPixmap e' un QPaintDevice quindi ci puoi disegnare sopra con QPainter

      QPixmap pix(100,100);
      pix.fill(Qt::blue);
      QPainter pixPainter(&pix);
      pixPainter.drawText(pix.rect(),Qt::AlignCenter,QStringLiteral("Ciao"));
      

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1

      • Login

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