Results 1 to 2 of 2

Thread: Linked List and GUI

  1. #1
    Join Date
    Jun 2017
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Linked List and GUI

    Hello,

    New to making programs that have a GUI and I am having trouble getting the hang of it for a specific project. I need to create a program where a user uses a GUI where they can enter any of the following types of data (int, string, char, double) on a textedit widget and then they can press a button of their choosing to create or manipulate a linked list of that data type entered by using functions like push_front, push_back, remove doubles etc. The link list class template is already crated and its not my concern. It works fine if I just run it without a GUI. What is my concern is displaying the list on a textbrowsing widget. I understand that a textedit takes in a Qstring that I need to convert that into a datatyoe a user whises to make, but what I cant figure out is how to turn that linked list back to a Qstring to have it displayed on the textbrowser widget. Am I thinking about it the wrong way? Should I use QLinkedList? If so is there any examples that any of you can point me to? Thanks for the help and your time.

  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: Linked List and GUI

    Is it a requirement to use a text browsing widget? Why not a QListView instead? You could properly wrap your data in a model.
    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.


Similar Threads

  1. qDeleteAll() and linked list iterators
    By jkyle in forum Qt Programming
    Replies: 2
    Last Post: 29th June 2010, 23:18
  2. Trouble implementing a linked list.
    By Bonafide in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2010, 22:13
  3. corrupted double-linked list
    By reuabreliz in forum Installation and Deployment
    Replies: 2
    Last Post: 6th January 2010, 14:15
  4. Replies: 26
    Last Post: 21st July 2007, 22:34
  5. Linked List
    By merry in forum Qt Programming
    Replies: 10
    Last Post: 14th March 2007, 08:07

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.