Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Persian
  4. پرینت
Qt 6.11 is out! See what's new in the release blog

پرینت

Scheduled Pinned Locked Moved Persian
6 Posts 3 Posters 3.8k Views 1 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    سلام دوستان
    میگم اگه من بخوام اطلاعات روی یک فروم رو پرینت کنم از توابعی باید استفاده کنم؟
    یعنی باید اطلاعات فیلد ها رو چه جوری تو قالب کاغذ های مختلف بیارم؟

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      p{direction:rtl; text-align:right}. اطلاعات روی فروم چیه؟
      NCReport
      KDAB

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        p{direction:rtl; text-align:right}.[quote author="Mahdi" date="1341090576"]p{direction:rtl; text-align:right}. اطلاعات روی فروم چیه؟
        NCReport
        KDAB[/quote]

        یه سری اعداد که صورت حسابه با یک سری اسم! اصلا شما فکر کن فرم یک فاکتور فروشه.
        یه فاکتور فروشو چه جوری پرینت میکنن؟

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          http://www.nocisoft.com/ncreport.html

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            p{direction:rtl; text-align:right}. کسی نبود؟

            1 Reply Last reply
            0
            • A Offline
              A Offline
              absfrm
              wrote on last edited by
              #6

              p{direction:rtl;text-align:right}. برای پرینت widget :
              @
              QPainter painter;
              painter.begin(&printer);
              double xscale = printer.pageRect().width()/double(myWidget->width());
              double yscale = printer.pageRect().height()/double(myWidget->height());
              double scale = qMin(xscale, yscale);
              painter.translate(printer.paperRect().x() + printer.pageRect().width()/2,
              printer.paperRect().y() + printer.pageRect().height()/2);
              painter.scale(scale, scale);
              painter.translate(-width()/2, -height()/2);

                   myWidget->render(&painter);
              

              @

              p{direction:rtl;text-align:right}. "اطلاعات بیشتر":http://doc.qt.nokia.com/4.7-snapshot/printing.html

              If You Want You Can!

              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