Results 1 to 2 of 2

Thread: Re: qmdisubwindow problem (I have new problem!)

  1. #1
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: qmdisubwindow problem (I have new problem!)

    hello guys.
    I have some question about qmdisubwindow.

    I have to make subwindow with custom titlebar.

    actually, I have made mainwindow with custom titlebar and frame.
    so I think I can make subwindow same way.

    But, mainwindow and qmdisubwindow is not operate same way.
    when I made custom mainwindow using
    Qt Code:
    1. setWindowFlags(Qt::FramelessWindowHint);
    To copy to clipboard, switch view to plain text mode 
    I can't resize mainwindow, so I add some code for resizing.
    and using
    Qt Code:
    1. setWindowFlags(Qt::FramelessWindowHint);
    To copy to clipboard, switch view to plain text mode 
    at the qmdisubwindow,
    I can resize subwindow.

    unfortunately, provided policy is not I want.
    So I want to add my own code for resize like mainwindow.
    for that, I remove provided resize function of subwindow.

    any hint? please help!


    Added after 20 minutes:


    A minute age, I saw the other mdiarea example.
    and there's subwindow operate correctly, so I miss the other site..
    I'm so confused..
    anyway sorry!
    you just pass this question!

    ================================================== ====================================

    It's my mistake that I think sub window is non-resizable.
    If I double-click the widget, I can resize the widget.
    so, I use code this :
    Qt Code:
    1. subwindow->setfixedsize();
    To copy to clipboard, switch view to plain text mode 

    but If I double-click the widget, mouse-cursor shape is still changed.
    I want cursor shape will not changed too.
    any help?? please...
    Last edited by melody:p; 3rd September 2012 at 06:01.

  2. #2
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: qmdisubwindow problem (I have new problem!)

    I want to konw the method that qmdisubwindow to be operate like mainwindow using code setWindowFlags(Qt::FramelessWindowHint);

Similar Threads

  1. QMdiSubWindow maximizing problem
    By hgedek in forum Qt Programming
    Replies: 1
    Last Post: 7th September 2011, 23:19
  2. Frameless QMdiSubWindow
    By meadmaker in forum Newbie
    Replies: 4
    Last Post: 14th September 2010, 11:28
  3. Painting problem when QMdiSubWindow is moved over QGraphicsView
    By Jayakrishnan in forum Qt Programming
    Replies: 0
    Last Post: 19th February 2010, 07:51
  4. How to get the position of a QMdiSubWindow
    By doberkofler in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2009, 18:35
  5. QMdiSubWindow problem with resized window
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 7th January 2008, 14:39

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.