Results 1 to 4 of 4

Thread: Cannot find line or rectangle widget

  1. #1
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Cannot find line or rectangle widget

    Hi,

    I have downloaded the qt-win-opensource-4.1.0-mingw.exe and have installed it.
    I want to create a GUI which comprises of drawing objects, like lines, rectangles, circles, triangles etc...
    But then when i open the QT Designer i don't get the option for them. Now how do i get them. In the Display widget i get the horizontal and vertical lines widger but do not get it for the rectangle, circle, triangle etc...

    Please tell me from where can i get them in the QT Designer...

    Thank you,
    Kapil

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Cannot find line or rectangle widget

    You can't accomplish custom drawing/painting in designer.

    You might wanna take a look at basic drawing example.

  3. #3
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot find line or rectangle widget

    Quote Originally Posted by jpn
    You can't accomplish custom drawing/painting in designer.

    You might wanna take a look at basic drawing example.
    hi,

    i went thru the example.. this means that i will have to hard code them in my ui file in order to make them appear on screen...
    there is no other way thru which i can place them like i do it with buttons or text edits...

    kapil

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

    Default Re: Cannot find line or rectangle widget

    You can use labels and assign pixmaps to them.

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06
  2. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51
  3. Qwizard crashed when created in a slot
    By joshlareau in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2008, 09:16
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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.