Results 1 to 4 of 4

Thread: QListWidget item display to LineEdit

  1. #1
    Join Date
    Jun 2015
    Posts
    11
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation QListWidget item display to LineEdit

    Hi,
    I have created a small application which consists of 6 buttons, 6 linedits ,1 Listwidget. When I click on a button a particular information(text) is displayed on the ListWidget. I wanted to display the selected item in the listwidget onto the lineedit, it worked using Connect but the problem arises when i try to click the next button, applications crashes.
    Why this is happening?
    I want, when a button is pressed the items are displayed in the Listwidget upon selecting a item from listwidget , it should be displayed in the lineedit. It should work for all the button press. How this can be done?

  2. #2
    Join Date
    Aug 2015
    Location
    Gdansk, Poland
    Posts
    21
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QListWidget item display to LineEdit

    Start Debugging (F5), do something in your gui that make it crash
    The thing that make it crashed wil be shown by debugger with yellow arrow
    ^^

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QListWidget item display to LineEdit

    First you write that there are 6 lineedits.
    Then you say that there is one lineedit into which you want to write the data of the list widget's current item.
    So is this a 7th lineedit?

    How does the code of the slot look like that you have connected to the list widget's signal?
    Can you write into the target line edit yourself?
    Have you even done any testing or just posted really undescriptive rambling into the forum for fun?


    Cheers,
    _

  4. #4
    Join Date
    Jun 2015
    Posts
    11
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListWidget item display to LineEdit

    its nonsense what r u talking ,if u r not in position to answer, dont do it.Nobody had compelled you. u should read it carefully first.
    Last edited by dinesh123; 28th August 2015 at 08:38.

Similar Threads

  1. Replies: 2
    Last Post: 17th September 2011, 04:40
  2. display date in LineEdit using CalendarWidget.
    By gauravg in forum Qt Programming
    Replies: 2
    Last Post: 15th September 2011, 16:28
  3. QListWidget Item
    By csvivek in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2008, 10:02
  4. The problem with the display of QListWidget
    By whyisosad in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 20:41
  5. Reg - add item in QListWidget
    By suresh in forum Newbie
    Replies: 1
    Last Post: 1st September 2006, 18:52

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.