Results 1 to 7 of 7

Thread: it exits some object like that?

  1. #1
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    3

    Default it exits some object like that?

    Hi,

    I would like to do a objetc like a table. it exits some he object or control like this:


  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: it exits some object like that?

    I can't see anything on the picture but if you want a table there is QTableView and QTableWidget. Anyway please don't link to images from external sites, use the attachment feature of the forum instead.
    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. #3
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    3

    Default Re: it exits some object like that?

    Hi again,

    Sorry for the link.

    I try to explain better. In my project I would like a control like the tv guide of mythtv where you can select a program and you can scheduling the recording automatically. This is exactly what I need.
    But I don't know how could I do this.

    Any ideas?
    Many thanks and sorry for my english!

  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: it exits some object like that?

    I don't use MythTV so I have no idea how the thing you want looks, sorry.
    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.


  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: it exits some object like that?

    I'd say what has already been suggested (QTableView or its friend, QTableWidget) is about the best your going to get.

  6. #6
    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: it exits some object like that?

    You could try using the QTableWidget with one column for each 30 minute (or whatever) period in the day, and one row for each station. Use a QTableWidget item for each show and place it in the right cell of the table, and span cells for the duration. Provide separate next/previous day controls. There are signals that can be used to update a program details panel as the user moves the focus around the table.

    A problem arises with shows that don't align nicely with 30 min cells. Have a look at how MythWeb handles those; perhaps it can be translated into Qt.

    A totally different approach would be to draw the schedule grid manually, with much finer granularity but also more complexity. You could perhaps do it with a QGraphicsScene.

    MythWeb could translate directly on to something that QtWebKit might handle.

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

    mmm286 (27th October 2009)

  8. #7
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    3

    Default Re: it exits some object like that?

    Quote Originally Posted by ChrisW67 View Post
    You could try using the QTableWidget with one column for each 30 minute (or whatever) period in the day, and one row for each station. Use a QTableWidget item for each show and place it in the right cell of the table, and span cells for the duration. Provide separate next/previous day controls. There are signals that can be used to update a program details panel as the user moves the focus around the table.

    A problem arises with shows that don't align nicely with 30 min cells. Have a look at how MythWeb handles those; perhaps it can be translated into Qt.

    A totally different approach would be to draw the schedule grid manually, with much finer granularity but also more complexity. You could perhaps do it with a QGraphicsScene.

    MythWeb could translate directly on to something that QtWebKit might handle.
    Hi again!
    I'm tryng but it's very complexity.
    I do a qTable to split with every cell every 30 minutes, and other qTable for every Station. But when the show doesn't align with 30 min cells I do comparaisons every 15 minutes but I must do a lot of "if...". to many difficult to me.

    Anyway many thanks for your ideas.

Similar Threads

  1. Getting std::string object from QString object ( qt3)
    By joseph in forum Qt Programming
    Replies: 11
    Last Post: 28th March 2013, 20:09
  2. Eclipse debugging: Unable to create variable object
    By PUK_999 in forum Installation and Deployment
    Replies: 0
    Last Post: 20th August 2009, 21:42
  3. Replies: 4
    Last Post: 19th February 2009, 11:10
  4. Help with Q_PROPERTY with object pointer
    By lni in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2009, 17:31
  5. A form returning an object.
    By cbarmpar in forum Qt Programming
    Replies: 3
    Last Post: 8th September 2008, 05: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.