Results 1 to 6 of 6

Thread: Display own widget in new window

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,331
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Display own widget in new window

    Qt Code:
    1. chartView->show();
    To copy to clipboard, switch view to plain text mode 

    Of course, what you are doing leaks memory for the QChartView. And since you create your QChartView without a parent, it is a top-level window and probably won't appear where you want it to.

    If that isn't the behavior you want, then you'll have to explain what should happen when the new chart is displayed.
    Last edited by d_stranz; 22nd November 2016 at 01:27.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 1
    Last Post: 5th April 2013, 03:22
  2. Replies: 6
    Last Post: 9th November 2011, 04:31
  3. Replies: 2
    Last Post: 2nd November 2010, 15:52
  4. QMainWindow to display X Window
    By augusbas in forum Qt Programming
    Replies: 5
    Last Post: 21st July 2010, 14:00
  5. Move QT Window to different x display
    By jbpvr in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 20:28

Tags for this Thread

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.