Results 1 to 2 of 2

Thread: How to avoid to transform the pen width settings

  1. #1
    Senior Member sarvani's Avatar
    Join Date
    May 2012
    Posts
    173

    Post How to avoid to transform the pen width settings

    Below is my code

    Code:
        QTransform Coords = painter->transform();
        painter->resetTransform();
         
        QPen Mypen = painter->pen();
        Mypen .setWidth(10);
        painter->setPen(Mypen );
         
        painter->setTransform(Coords );
    After this the changes are applying to the pen..How to avoid this

  2. #2
    Senior Member
    Join Date
    Oct 2012
    Posts
    295
    Blog Entries
    5
    Code:
    QPen::setCosmetic(true)
    Try this

Similar Threads

  1. Blue Tooth settings testing?
    By Cora in forum Testing
    Replies: 4
    Last Post: 06-13-2013, 11:52 AM
  2. Example drawing Using Pen and Brush in QT
    By Bandhavi in forum C, CPP Programs
    Replies: 0
    Last Post: 11-15-2012, 05:35 AM
  3. How to transform row to columns in informatica
    By vijay in forum Data Warehouse
    Replies: 1
    Last Post: 08-07-2012, 09:04 AM
  4. Visual studio Tools settings for RTRT
    By suve in forum Testing
    Replies: 1
    Last Post: 07-03-2012, 09:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •