Results 1 to 9 of 9

Thread: (probably newbie) Windows Mobile 5 questions

  1. #1
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Question (probably newbie) Windows Mobile 5 questions

    Hey guys,
    I'm trying to create an application for a friend's PocketPC (running WM5). It's a word processing application, a bit better than my friend's version of Word. However I'm only a newbie to Qt and though I've got most of it to work (on Windows anyway ... haven't tried building it yet ...) there are a few things that I'm not sure of:

    • Can you make it so that there is a mode where you can write on the screen and it will pick up the letters? You can do this in PocketWord but I don't know how easy it would be to implement with Qt (or has QTopia got something ... anyway is QTopia only for Embedded Linux or can it do WinMobile now?)
    • On my friend's PPC, you can turn the screen horizontal or vertical. Is there a way I can check which orientation the screen is in so I can juggle the layout of my widgets?
    • This one isn't really to do with PPC at all, but I am trying to make insertion and deletion of columns in a table in a QTextEdit. Is there an easy way to do this - the only way I can think of is to look through the HTML for an opening and closing table tag, look for the row and cell tags and act on them ... even that I'm not sure how to implement ...

  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: (probably newbie) Windows Mobile 5 questions

    Quote Originally Posted by zeldaknight View Post
    Can you make it so that there is a mode where you can write on the screen and it will pick up the letters? You can do this in PocketWord but I don't know how easy it would be to implement with Qt (or has QTopia got something ... anyway is QTopia only for Embedded Linux or can it do WinMobile now?)
    You have to change the input method so that native scribbling capabilities for Mobile are activated. I don't have Windows Mobile so unfortunately I can't tell you how to do it.

    On my friend's PPC, you can turn the screen horizontal or vertical. Is there a way I can check which orientation the screen is in so I can juggle the layout of my widgets?
    There is QDesktopWidget::availableGeometry() and QDesktopWidget::resized signal

    This one isn't really to do with PPC at all, but I am trying to make insertion and deletion of columns in a table in a QTextEdit. Is there an easy way to do this - the only way I can think of is to look through the HTML for an opening and closing table tag, look for the row and cell tags and act on them ... even that I'm not sure how to implement ...
    You have to go through the QTextDocument interface - fetch the proper block, get the table from it and then you can manipulate it.

    BTW. "PPC" is "PowerPC" not "PocketPC"
    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.


  3. #3
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: (probably newbie) Windows Mobile 5 questions

    Thanks for that - I'll have a closer look at the docs .
    BTW. "PPC" is "PowerPC" not "PocketPC"
    Oh ... PPC turns up PocketPC stuff on Google ... I may or may not remember that !

  4. #4
    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: (probably newbie) Windows Mobile 5 questions

    PocketPC unique abbreviation is P/PC. PPC was hijacked from their former meanings and became ambiguous.

    http://en.wikipedia.org/wiki/PPC
    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.


  5. #5
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: (probably newbie) Windows Mobile 5 questions

    Hmm ... interesting.
    So about the tables ... You'd use the document() method from QTextEdit, then find the QTextCursor and get the table from there? The only thing I'm not sure about is how to get the table from the cursor - is it the same as a block? Or is a block a table cell?

  6. #6
    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: (probably newbie) Windows Mobile 5 questions

    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.


  7. The following user says thank you to wysota for this useful post:

    zeldaknight (1st May 2009)

  8. #7
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: (probably newbie) Windows Mobile 5 questions

    Thanks ! And I guess I can use selectedTableCells() to figure out where to put in the new table? So if I said:
    Qt Code:
    1. int firstRow = -1;
    2. int firstCol = -1;
    3. cursor->selectedTableCells(firstRow, ,firstCol, );
    4. if(firstRow != -1)
    5. cursor->currentTable()->insertRows(firstRow, 1);
    To copy to clipboard, switch view to plain text mode 
    But that doesn't work, does it - functions can't return values through their parameters?

  9. #8
    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: (probably newbie) Windows Mobile 5 questions

    Quote Originally Posted by zeldaknight View Post
    But that doesn't work, does it - functions can't return values through their parameters?
    Take a decent C++ book, read it and answer this question yourself.
    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.


  10. #9
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Unhappy Re: (probably newbie) Windows Mobile 5 questions

    Sorry ... guess that was a bit too noobish. I'll see if I can work it out from here.

Similar Threads

  1. Windows Mobile Query
    By tntcoda in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2009, 15:06
  2. A couple of questions on installing Qt 4.5 on Windows Xp
    By rishiraj in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd April 2009, 07:44
  3. how to write a sample application using QT on windows mobile
    By pallavi Boyapat in forum Qt Programming
    Replies: 0
    Last Post: 4th November 2008, 06:10
  4. Asynchronously playing a sound (.wav) on windows mobile
    By TMan in forum Qt for Embedded and Mobile
    Replies: 10
    Last Post: 20th October 2008, 19:16
  5. QSystemTrayIcon on Windows Mobile 5
    By lovelypp in forum Qt Programming
    Replies: 0
    Last Post: 12th July 2008, 15:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.