Results 1 to 2 of 2

Thread: PyQT Problems

  1. #1

    Default PyQT Problems

    Hi Guys

    Please don't mind my bad English im just a 16 year old German
    I'm facing the following Problem at the moment:

    In school, we should make a Python Project and we could choose what we want to do.
    I decided to do a little Gui programm using PyQT and well tomorrow we have to be finished...

    Now to my Questions:

    How can i read the Content of a QTextEdit Widget line by line and how can i write it in line by line?

    How can i read out the content of a QLineEdit Widget?

    How can i set and Read out the Date of a QDateEdit Widget?

    Thanks fo your help!
    Detrexer

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: PyQT Problems

    Quote Originally Posted by Detrexer View Post
    How can i read the Content of a QTextEdit Widget line by line and how can i write it in line by line?
    To append a line you can use QTextEdit::append(). Reading line by line is a bit more complex, but you can get all of the text with QTextEdit::toPlainText() (the docs are for C++ version, but PyQt behaves almost the same).

    Quote Originally Posted by Detrexer View Post
    How can i read out the content of a QLineEdit Widget?
    See QLineEdit::text() and QLineEdit::setText() methods.

    Quote Originally Posted by Detrexer View Post
    How can i set and Read out the Date of a QDateEdit Widget?
    See QDateTime::date() and QDateTime::setDate() methods.

Similar Threads

  1. is there any pyqt forum
    By slhtn in forum Newbie
    Replies: 3
    Last Post: 7th December 2015, 04:12
  2. flicker and wierd resize problems ...
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 18:00
  3. Compiling PyQt with MinGW
    By QuiGon in forum Installation and Deployment
    Replies: 0
    Last Post: 13th April 2008, 07:20
  4. PyQt QTimer problem { FIXED }
    By WinchellChung in forum Newbie
    Replies: 0
    Last Post: 1st March 2008, 16:50
  5. Canvas problems
    By Tommytrojan in forum Qt Programming
    Replies: 22
    Last Post: 9th May 2006, 16:46

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.