[Qt-interest] Want no title bar on Windows
luis navarro
luis.navarro at jro.igp.gob.pe
Wed Dec 2 22:33:11 CET 2009
Hi, there. Maybe this can helps you:
class MainWindow : public QMainWindow, public Ui::MainWindow{
...
}
MainWindow::MainWindow(){
...
this->setWindowFlags(Qt::CustomizeWindowHint);
...
}
If you want to customize your title bar, just add:
this->setWindowFlags(Qt::CustomizeWindowHint|Qt::WindowSystemMenuHint|Qt::WindowMinimizeButtonHint);
Best regards.
2009/12/2 David Boosalis <david.boosalis at gmail.com>
> Hi.
> I am trying to replicate an existing Windows application for a client. This
> application has no frame yet is resizeable. I'd like to replicate this with
> the Qt app I am working on, but I am unable to find the right flags or
> methods that will allow me to have no title bar and still have a small
> frame that I can still grab and change the size and location of the window.
>
> Is it possible to do this on Windows at all. Can I somehow get the window
> ID and call a native WIN32 API that will do this, if so what would be this
> Win32 API call.
>
> Thank you for any help you can provide.
>
> -David
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Atte.
Luis Navarro Domínguez
luis.navarro at jro.igp.gob.pe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091202/6b711183/attachment.html
More information about the Qt-interest-old
mailing list