Results 1 to 2 of 2

Thread: x11 + ARM + painting + rotating qt application

  1. #1
    Join Date
    Jul 2011
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question x11 + ARM + painting + rotating qt application

    Hi
    I am facing a trivial problem in qt.I have builded a qt application on my linux desktop.And it has some real time graph plottings.And it runs fine.I am plotting outside paint event by setting attributes.When i ran same app in my arm based parocessor environment(where exactly we need to fit final application), i am getting error as qpainter not active.
    In arm i am running app with -qws. Is this the issue with X11 server as we can only plot outside painevent in x11 only.
    Just to overcome this issue i tried with pain event which works fine..but my app dimension is 320*240.In my arm environment the LCD size is 240*320,so i rotared my app by placing it in a qgraphics scene.After this rotation even i could't able to c the graph.

    So whats the solution.?How can i solve this issue..?any ideas?

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

    Default Re: x11 + ARM + painting + rotating qt application

    The solution is not to paint outside the paint event. You can render whatever you want to a pixmap and then render the pixmap to the widget during paint event handling.
    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.


Similar Threads

  1. Rotating QGraphicsTextItem
    By meazza in forum Newbie
    Replies: 4
    Last Post: 2nd August 2011, 12:11
  2. Rotating pixmap
    By jano_alex_es in forum Newbie
    Replies: 4
    Last Post: 19th December 2010, 04:00
  3. rotating a widget
    By oguzy in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2008, 00:08
  4. Rotating the polygon
    By navi1084 in forum Qt Programming
    Replies: 1
    Last Post: 4th September 2008, 00:41
  5. Rotating a slider...
    By ACFred in forum Newbie
    Replies: 7
    Last Post: 24th February 2008, 15:56

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
  •  
Qt is a trademark of The Qt Company.