Results 1 to 4 of 4

Thread: Edit a QListWidget from a MainWindow Component

  1. #1
    Join Date
    Jul 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Edit a QListWidget from a MainWindow Component

    I have a MainWindow with the Class name of TabbedMainWindow which contains a QTabWidget. The tabs are to be populated from a different MainWindow called ClusterManagement based on user defined variables. Each 'new' tab is a QWidget with a QListWidget inside of a ScrollArea. My question is how do I edit a specific list, in a specific tab?
    I've attached my entire project folder so that you may see how everything is set up.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: blog amateur sexe

    Couldn't see on a quick check how you add your tabs, but you can just keep pointers to the list widgets in a QList or QVector, using the index of the page to find the list widget that is on it.

    Cheers,
    _

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

    xXTheAwesomerXx (5th December 2015)

  4. #3
    Join Date
    Jul 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: blog amateur sexe

    Quote Originally Posted by anda_skoa View Post
    Couldn't see on a quick check how you add your tabs, but you can just keep pointers to the list widgets in a QList or QVector, using the index of the page to find the list widget that is on it.

    Cheers,
    _
    So as I'm adding the lists, add them to a qlist for future reference?

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: blog amateur sexe

    Yes

    Cheers,
    _

Similar Threads

  1. QTableView line edit clears the text on edit
    By PlasticJesus in forum Qt Programming
    Replies: 5
    Last Post: 14th March 2015, 20:06
  2. Replies: 2
    Last Post: 4th April 2013, 07:36
  3. Replies: 0
    Last Post: 5th January 2013, 14:29
  4. Replies: 2
    Last Post: 3rd March 2012, 07:59
  5. Character encoding in text edit and llne edit
    By greenvirag in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 09:45

Tags for this Thread

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.