Results 1 to 7 of 7

Thread: Title Bar Alignment and mainwindow options

  1. #1
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Title Bar Alignment and mainwindow options

    I hav an application developed on Windows and hav ported to Linux.The title bar which was on the left side on Windows appears in the center on Linux.I even removed minimize,maximize option in my window but both options are available on Linux.Can anybody suggest how to get these things done..

  2. #2
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Title Bar Alignment and mainwindow options

    use Transformation.
    what code you have written?

  3. #3
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Title Bar Alignment and mainwindow options

    I hav used setTitleBar("name) within the QMainWindow constructor.On windows OS the title
    appears on the left side but when i use the same code on Linux the title appears in the center..Also the application needed a MainWindow without maximize and minimize button so passed Qt::WindowSystemMenuHint as argument to the QMainWindow constructor .It worked fine for Windows OS but on Linux minimize button is visible.s there any mrthod to hide those on Linux OS

  4. #4
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Title Bar Alignment and mainwindow options

    I didnt get setTitleBar() in Qt4 & Qt3.
    which version of qt you using?
    is your function not accepting Qt::AlignLeft( Qt::Alignment) ?

  5. #5
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Title Bar Alignment and mainwindow options

    Sorry its actually...
    setWindowTitle("Name")...i am using Qt 4.3.....
    I want the title in the leftside......The ststement works fine for Windows OS but on Linux i will get the Title in the center

  6. #6
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Title Bar Alignment and mainwindow options

    try to set
    setWindowFlags(Qt::Window);
    or check setWindowFlags() doc.

  7. #7
    Join Date
    Jul 2007
    Posts
    57
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Title Bar Alignment and mainwindow options

    I even tired with setWindowFlags(Qt::WindowSystemMenuHint)..Its does not work.
    I had passed Qt::WindowSystemMenuHint as arguement to QMainWindow Constructor.I even tried using this in setWindowFlags() but its not working.It worked fine on Windows OS
    but on Linux there is some problem...Is there any other option

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.