Results 1 to 4 of 4

Thread: Reusing the same widget to implement "split-screen"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Reusing the same widget to implement "split-screen"

    Put your two instances inside a container QWidget using a QHBoxLayout or QSplitter. Set that container widget as the QMainWindow::centralWidget().

    Edit: beaten to it

  2. The following user says thank you to ChrisW67 for this useful post:

    thomab (30th January 2011)

  3. #2
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Reusing the same widget to implement "split-screen"

    Thanks, this seems to work just fine.
    Guess I should have posted it in the newbie section.

Similar Threads

  1. How can i implement "Undo" action?
    By suseway in forum Qt Programming
    Replies: 1
    Last Post: 29th October 2010, 11:32
  2. Replies: 1
    Last Post: 15th June 2009, 17:28
  3. How would you implement a "sticky" cursor?
    By spagatoni in forum Qt Programming
    Replies: 0
    Last Post: 4th May 2009, 20:56
  4. [QT3] Implement "Freeze Panes" features in QListView
    By Syphius in forum Qt Programming
    Replies: 7
    Last Post: 5th January 2009, 21:25
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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.