Results 1 to 7 of 7

Thread: QCanvas in widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Location
    Kolkata
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QCanvas in widget

    Hi,

    I am new in Qt. I have two questios.
    Q1. Is there any way by which I can embed a Canvas into my MainWindow?

    Q2. Can any external window (like x0 window) be embedded into a widget?

    I am using Fedora10 and Qt4.

    Thanks in advance.
    Prasenjit
    Kolkata, India

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QCanvas in widget

    1) What is a "canvas"?
    2) If you are speaking of native windows, there are several add-ons to Qt, the so called "Qt solutions" that are offering mixing of native Windows or X11 applications. The mac port of Qt contains a QCocoaWidget to mix native widgets there.

    For both question, I can provide more comprehensive answers if you provide more precise what you want to do.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Aug 2009
    Location
    Kolkata
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCanvas in widget

    Hi,

    Thanks for response and sorry for the confusion...

    Actually I am creating a application in which I have to use GRASS 6.2 (GIS open source application) . For that I require to show the x terminal (created by grass (command : d.mon) to embed in my widget. That widget can not be a separate one as I have menu and all other controls there in the widget. I have tried with QX11EmbedContainer class but unable to embed the x terminal (but exterm is working).

    I hope I am clear this time. Please help.

    Prasenjit.
    Prasenjit
    Kolkata, India

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QCanvas in widget

    So you want to start two processes but have to them is one window?
    It's nice to be important but it's more important to be nice.

  5. #5
    Join Date
    Aug 2009
    Location
    Kolkata
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCanvas in widget

    Yes, but out of two process one is of Qt and another is non-Qt (grass6.2).

    thanks.
    Prasenjit
    Kolkata, India

  6. #6
    Join Date
    Aug 2009
    Location
    Kolkata
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Re: QCanvas in widget

    Hi All,

    I am still waiting for any help....
    Prasenjit
    Kolkata, India

  7. #7
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QCanvas in widget

    This is nothing for a beginner. If you are realy a beginner, start with something easier.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Remove widget from a QList
    By Eos Pengwern in forum Newbie
    Replies: 4
    Last Post: 16th October 2009, 21:25
  3. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  4. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  5. Replies: 7
    Last Post: 20th March 2006, 20:03

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.