Results 1 to 4 of 4

Thread: QMainWindow with no titlebar in OSX

  1. #1
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QMainWindow with no titlebar in OSX

    Hi,

    how can I do a QMainWindow in OSX? It always is shown without a titlebar and it's imposible to move it.

    The QDialogs works fine

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMainWindow with no titlebar in OSX

    Can we see the code? Do Qt mainwindow examples work fine?

  3. #3
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMainWindow with no titlebar in OSX

    The examples are working fine.

    The code of the Mainwindow contructor is:

    Qt Code:
    1. MainWindow::MainWindow(QWidget *parent, Qt::WFlags f):DPSMainWindow(parent, f){
    2. QSplashScreen splash(QPixmap(":/images/splash.png"));
    3. splash.show();
    4. setupUi(this);
    5.  
    6. init();
    7. readSettings();
    8. splash.finish(this);
    9. }
    To copy to clipboard, switch view to plain text mode 

    DPSMainWindow is only a subclass of QMainWindow, dont change anything
    Last edited by xgoan; 22nd February 2007 at 12:11. Reason: missing [code] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMainWindow with no titlebar in OSX

    What flags do you pass to the constructor?

Similar Threads

  1. QMainWindow resize problem
    By edb in forum Qt Programming
    Replies: 5
    Last Post: 12th January 2007, 10:31
  2. QMainWindow not receiving QResizeEvent
    By brcain in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2006, 06:11
  3. Dynamically Loading a QMainWindow?
    By natron in forum Newbie
    Replies: 10
    Last Post: 21st July 2006, 01:15
  4. Replies: 9
    Last Post: 9th May 2006, 19:53
  5. Replies: 18
    Last Post: 22nd February 2006, 20:51

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.