Results 1 to 10 of 10

Thread: Graphics

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Graphics

    Looks fine, just make the constructor explicit, "just in case". I'd also suggest to replace those C array arguments with QVector or QList.
    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. The following user says thank you to wysota for this useful post:

    TheDuncan (5th April 2010)

  3. #2
    Join Date
    Mar 2010
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Graphics

    I'll do that.

    How do you add a custom widget to a form?

  4. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Graphics

    A custom widget is still a widget, you can directly show it using QWidget::show, or you can add it to any other widget in that widgets layout.
    Give some time exploring the examples and documentation.

  5. The following user says thank you to aamer4yu for this useful post:

    TheDuncan (5th April 2010)

  6. #4
    Join Date
    Mar 2010
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Graphics

    Ok, but where do I use those commands? In main? Do How do I limit the space or assign where on the form the widget appears?

  7. #5
    Join Date
    Mar 2010
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Graphics

    Thanks for all the help. Works like a champ

Similar Threads

  1. Qt-Graphics
    By grsandeep85 in forum Qt Programming
    Replies: 3
    Last Post: 30th October 2009, 09:33
  2. Qt Graphics
    By soumya in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2009, 09:41
  3. Qt Graphics
    By soumya in forum Qt Programming
    Replies: 8
    Last Post: 19th August 2009, 12:12
  4. 3D graphics
    By impeteperry in forum Qt Programming
    Replies: 3
    Last Post: 19th July 2009, 08:00
  5. Qt graphics
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 22nd May 2007, 06:20

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.