Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Persian
  4. پرینت

پرینت

Scheduled Pinned Locked Moved Persian
6 Posts 3 Posters 2.5k 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.
  • B Offline
    B Offline
    black rider
    wrote on last edited by
    #1

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

    Black Rider

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shs_night
      wrote on last edited by
      #2

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

      QtSDK 1.2 + MinGW + Desktop !

      1 Reply Last reply
      0
      • B Offline
        B Offline
        black rider
        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]

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

        Black Rider

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shs_night
          wrote on last edited by
          #4

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

          QtSDK 1.2 + MinGW + Desktop !

          1 Reply Last reply
          0
          • B Offline
            B Offline
            black rider
            wrote on last edited by
            #5

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

            Black Rider

            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