Results 1 to 3 of 3

Thread: rotating a widget

  1. #1
    Join Date
    Sep 2008
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default rotating a widget

    Hi,

    Is there any way like resizing or setting geometry for QInputDialog for
    rotating it or should i create a rotatable widget including QInputDialog
    and rotate it?

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

    Default Re: rotating a widget

    Rotating a widget is a very tricky thing, so if you're sure you need it, implementing your own widget should be easier. If you are only after resizing it, then it's a widget like any other, so you can manipulate it with move() and resize().

  3. #3
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: rotating a widget

    You might wanna take a look at QGraphicsWidgetItem and QGraphicsProxyItem ( i am not sure on the proxy but it sounds like that) only available on Qt 4.4

    all you need is a scene an i believe if you wrap your widgets with these you can control them very well.... you can even make them wiggle of you want....

    baray98

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Widget Focus
    By navi1084 in forum Qt Programming
    Replies: 6
    Last Post: 29th September 2008, 10:22
  3. Playbutton functionality
    By uchennaanyanwu in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2008, 22:29
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35

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.