Results 1 to 5 of 5

Thread: Photoshop-like palettes.

  1. #1

    Default Photoshop-like palettes.

    Hi all,
    I want to create a photoshop-like interface with tool palettes (such as layes, history and others in PS).

    For this purpose I use QMdiArea and QMdiSubWindow. I have two problems: I can't make small title bars for tool windows, and after maximising one of non-tool subwindows it covers palettes.

    I tried to set Qt::Tool flag for making title bar smaller, but it helps only for top-level windows and has nothing effect for MdiSubWindows.

    Thank you for your answers.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Photoshop-like palettes.

    Isn't it better to use dock widgets for that?

  3. #3

    Default Re: Photoshop-like palettes.

    If user wants only one or two dock widget to be open, it will be much free space on side panel. Photoshop-like panels let use that space.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Photoshop-like palettes.

    Aren't they tool windows and not part of the MDI?

  5. #5

    Default Re: Photoshop-like palettes.

    Oh yes! The solution was so simple... Thank you. I tried to place palettes as MdiSubWindows instead of making it Qt::Tool window and showing it on top. Thank you again.

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.