Results 1 to 6 of 6

Thread: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

  1. #1
    Join Date
    Aug 2009
    Location
    Lviv
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    Hi,

    At work I write app on Vista. I have set
    Qt Code:
    1. view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    To copy to clipboard, switch view to plain text mode 

    Trying to open the same app at home on linux give me just plain window(without grahics element) and app hung up. I was looking for the problem and wnen I comment out
    Qt Code:
    1. view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    To copy to clipboard, switch view to plain text mode 
    everything go ok.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    Are you using an OpenGL viewport for your view?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2009
    Location
    Lviv
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    No, just simple 2D view.

  4. #4
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    Quote Originally Posted by Nadia View Post
    view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    Did you try :
    Qt Code:
    1. view->setRenderHints(QPainter::SmoothPixmapTransform);
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    Quote Originally Posted by Nadia View Post
    No, just simple 2D view.
    QGLWidget can serve as a 2D view as well Try calling setViewport(new QGLWidget) on your view (of course add QT+=opengl to your Qt project).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Aug 2009
    Location
    Lviv
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPainter::Antialiasing | QPainter::SmoothPixmapTransform bug on Linux?

    bunjee
    Qt Code:
    1. view->setRenderHints( QPainter::SmoothPixmapTransform);
    To copy to clipboard, switch view to plain text mode 

    works fine (does not hung up), but result is not the same as with QPainter::Antialiasing.

    wysota
    I dont wont for now use QGLWidget.

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 10:03
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  3. Deploying App on Linux
    By janus in forum Installation and Deployment
    Replies: 5
    Last Post: 6th May 2008, 22:18
  4. QT 3 (linux) to 4(windows XP)
    By deekayt in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2006, 19:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.