Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt combobox

Qt combobox

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 215 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Samshetty
    wrote on last edited by
    #1

    I have created a ui file which has combobox in it. combobox has 2 items.Im accessing the combobox in code to retrieve data.But not changing anything related to items any where.When I run the application an empty space gets added at the last in the combobox.And the first element goes on top.Which is not visible to user.User has to use the side button to drag it up.And it's intermittent.Any idea why it's happening?
    I'm using qt4.8 and rhel6

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Putting aside the fact that Qt 4 has reached end of life almost a decade ago, for such a simple UI, I would recommend doing everything in code.
      That said, what are the settings of your QComboBox ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • SGaistS SGaist moved this topic from The Lounge on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved