Results 1 to 8 of 8

Thread: QComboBox does not function properly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QComboBox does not function properly

    For each line in the file:
    - read the line
    - insert it into the combobox
    To reinforce what high_flyer is asking, where are you performing the first step in this loop ("read the line")?

    And since everything in python depends on indentation, what do you think happens to "tmod" (or "tmodel" - you seem to have not cut and pasted very carefully) after the first time through the for loop?
    Last edited by d_stranz; 27th November 2017 at 17:42.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QCombobox contents not adjusting itself properly
    By anju123 in forum Qt Programming
    Replies: 4
    Last Post: 6th April 2016, 21:11
  2. Replies: 1
    Last Post: 27th November 2014, 09:11
  3. QComboBox Signals doesn't invoke the called function
    By ladiesfinger in forum Qt Programming
    Replies: 6
    Last Post: 30th December 2010, 16:20
  4. How to pass a QComboBox to a function?
    By Ricardo_arg in forum General Programming
    Replies: 4
    Last Post: 9th March 2008, 22:16
  5. Contents not Properly Visible in QComboBox
    By merry in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2007, 12:32

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
  •  
Qt is a trademark of The Qt Company.