Results 1 to 2 of 2

Thread: Toolbars "out" of main window

  1. #1
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Thanks
    16
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Toolbars "out" of main window

    Hi all,

    I'm working on a framewrok to ease creation of big projects. It has a QMainWindow for the "application launcher" that shows a menu and some interesting data.

    From this menu, you can take actions : data mining of database through grids, launch processes / transactions, enter/edit data, etc. Imagine a big ERP, so that's my current project...

    I have to show a QToolBar with some icons on top of most of the windows, but if I use a QDialog I have to layout them manually ( OK, no problem ), but they show very different from QMainWindow ( doesn't have the little vertical dotted bar to stretch them, basically )

    It's a normal behaviour ? I'm doing something the wrong way?

    Anyway, the problem will be solved making ALL actual QDialogs be QMainWindow. It's not a problem, because actually I use QtDesigner to design windows, and a QUiLoader to load them into the app. Then I can load it dinamically changing all I want...

    And I'm actually adding buttons, Toolbars and statusbars to the forms, i.e.

    But it's a good idea to have more than 1 QMainWindow ?

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

    Default Re: Toolbars "out" of main window

    Yes, it's a normal behaviour - dialog windows don't have toolbars. And yes, you can have more than one "main window" in your application.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    jpujolf (4th December 2009)

Similar Threads

  1. Replies: 2
    Last Post: 9th August 2009, 22:08
  2. access main window from function
    By eric in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2008, 21:29
  3. minimizing main window
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2007, 16:54
  4. Background image for main window widget using css.
    By Enygma in forum Qt Programming
    Replies: 8
    Last Post: 23rd August 2007, 15:40
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.