Results 1 to 7 of 7

Thread: How to make frameless widget as a window or dialog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to make frameless widget as a window or dialog

    I made a frameless widget which has its own titlebar. When this widget has a parent widget, it doesn't act as a separate window anymore, but I want to have it popup as a dialog. Unfortunately I can't minimize, maximize it. It stays inside the parent widget frame. How can I make this frameless widget still act as an independent window or dialog when it has a parent widget?

    The code looks something like this:

    #include <QtGui>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QMainWindow mainWin;
    mainWin.show();

    FramelessWidget myWid(&mainWin, Qt:ialog | Qt::FramelessWindowHint);
    myWid.show();

    return app.exec();
    }

    Anyone has any ideas?
    Last edited by ainne810329; 3rd November 2011 at 12:32.

Similar Threads

  1. Move Frameless Dialog
    By deepal_de in forum Qt Programming
    Replies: 7
    Last Post: 6th June 2011, 09:35
  2. Frameless Window Helper
    By nish in forum Qt-based Software
    Replies: 6
    Last Post: 20th February 2011, 08:28
  3. Replies: 10
    Last Post: 26th October 2010, 00:59
  4. Resize handling of frameless window
    By Peppy in forum Qt Programming
    Replies: 5
    Last Post: 2nd June 2010, 21:48
  5. How to show a frameless dialog - DOESN'T WORK
    By franco.amato in forum Newbie
    Replies: 4
    Last Post: 2nd June 2010, 18:21

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.