Results 1 to 6 of 6

Thread: Making QgraphisProxyWidget resizable on MAC.

  1. #1
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Making QgraphisProxyWidget resizable on MAC.

    Hi,

    I am enclosing my wodget in QGraphicsProxyWidget using the addWidget funtion.
    Qt Code:
    1. m_myDialog = new IncludeChannels(0, windowFlags);
    2. m_myDialogProxy = scene->addWidget(m_myDialog, windowFlags());
    To copy to clipboard, switch view to plain text mode 

    but the dilaog that i am getting is not resizable. It just have a close button. I need to have minimize and maximse buttons as well.

    I have also tried to explore QtAssistant but could not find any help...

    I need the resize triangle on MAC.

    Please help

    Regards,
    GK

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Making QgraphisProxyWidget resizable on MAC.

    I don't know about the buttons, but it should be resizable by default. Does IncludeChannels reimplement any mouse event handlers?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Making QgraphisProxyWidget resizable on MAC.

    No include channels do not handle any mouse events..
    There is no resizing handle present at the bottom right cornor of the dialog.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Making QgraphisProxyWidget resizable on MAC.

    I guess I haven't seen any resize handles in QGraphicsWidget windows either. But you're supposed to be able to resize the window when you move the mouse close enough to the edge of the window:
    Qt Code:
    1. // main.cpp
    2. #include <QtGui>
    3.  
    4. int main(int argc, char* argv[])
    5. {
    6. QApplication app(argc, argv);
    7. QGraphicsWidget* widget = new QGraphicsWidget(0, Qt::Window);
    8. widget->resize(320, 200);
    9. scene.addItem(widget);
    10. QGraphicsView view(&scene);
    11. view.resize(640, 400);
    12. view.show();
    13. return app.exec();
    14. }
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  5. #5
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Making QgraphisProxyWidget resizable on MAC.

    But that resizing is only possible for top and left sides of dialog.
    Is there any way by which i can show the resize handle....
    Even some native MAC Api ?

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Making QgraphisProxyWidget resizable on MAC.

    There's nothing MAC specific inside the graphics view. They are not native MAC windows but plain graphics items after all.
    J-P Nurmi

Similar Threads

  1. making an application window non resizable
    By aegis in forum Qt Programming
    Replies: 16
    Last Post: 13th May 2007, 19:14

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.