Results 1 to 3 of 3

Thread: Is This available create Widget on another Widget?

  1. #1
    Join Date
    Oct 2014
    Posts
    2
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Is This available create Widget on another Widget?

    Hello.

    I wish make application use Qt4. It have one View and I separate 2 column use QHBoxLayout.
    In left side, it load image file and view it. And I want create TableWidget on image. (Sorry. I don't speak English well. Maybe you hard to understand).

    Screenshot from 2014-10-23 03:25:53.png
    If you don't understand my text. I draw this image and upload it.
    image is loaded external image file.
    Tablewidget(in this image, it's white square) is created any point(ex. x=10, y=27).
    Is this available I create widget like this image?

    thanks for read this thread.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Is This available create Widget on another Widget?

    Yes, it is possible.

    Any widget you create with the image displaying widget (a QLabel?) as its parent will display on top of the image. You will need to position and size the top widgets yourself.

    Another way might be to set the image as the background of a QWidget and use a QLayout to position other widgets on top leaving gaps in the layout where the image should be seen.

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

    devdogg (24th October 2014)

  4. #3
    Join Date
    Oct 2014
    Posts
    2
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Is This available create Widget on another Widget?

    Thanks, ChrisW67.
    I create test application. It was work fine.

Similar Threads

  1. How to create a LCD widget in QML?
    By TheIndependentAquarius in forum Qt Quick
    Replies: 3
    Last Post: 28th October 2013, 08:17
  2. create dock widget from some other widget
    By Onanymous in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2011, 15:22
  3. Replies: 0
    Last Post: 3rd August 2011, 12:07
  4. Create ui from widget
    By Fastman in forum Qt Programming
    Replies: 2
    Last Post: 29th November 2010, 19:53
  5. How to Create child widget behind parent widget?
    By anupamgee in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2010, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.