Results 1 to 10 of 10

Thread: How to rotate the control?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to rotate the control?

    Did you try at least going throught the examples in the documentation?

    QGraphicsScene::addWidget()
    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.


  2. #2
    Join Date
    Oct 2009
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default Re: How to rotate the control?

    I know the function QGraphicsScene::addWidget() , but QGraphicsScene have the rotate function, so if use the addWidget function add the control into QGraphicsScene, how to let it rotate? subclass the control, paint it with the rotate angle?

    You give me a good suggestion. I will read document when I'm free. Now I have an urgent thing to do. thank you for your help.

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

    Default Re: How to rotate the control?

    Quote Originally Posted by tszzp View Post
    I know the function QGraphicsScene::addWidget() , but QGraphicsScene have the rotate function, so if use the addWidget function add the control into QGraphicsScene, how to let it rotate? subclass the control, paint it with the rotate angle?
    What does QGraphicsScene::addWidget() return? What classes do this return object inherit? What API do they have?

    Now I have an urgent thing to do. thank you for your help.
    Writing such things here is a good first step to not being helped... So that you know... We all have urgent things to do yet we come here and try to help you solve your problem. So at least be polite.
    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.


  4. The following user says thank you to wysota for this useful post:

    tszzp (25th November 2009)

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. Replies: 6
    Last Post: 11th November 2009, 10:42
  3. rotate operation and cpu usage
    By ersin.ozkan in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2008, 06:42
  4. QTextEdit control
    By vijay anandh in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2006, 13:14
  5. Replies: 6
    Last Post: 3rd February 2006, 09:48

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.