Join Today
+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. Default

    Weel, when we are going to see a working app in QT ?


  2. #22
    Join Date
    Jan 2007
    Location
    Belo Horizonte, MG, Brazil
    Posts
    375

    Default

    Quote Originally Posted by joaorodrigo
    Weel, when we are going to see a working app in QT ?

    Some progress. Bellow is an application derived from ZBaseDialog with two QPushButtons, one QLineEdit and one QComboBox.
    I needed to implement a lot of methods from ZBaseDialog that are pure virtual.
    I can enter any text on QLineEdit and I can select any Item from QComboBox but I can't connect de buttons to a signal handler.
    The QObject::connect() method returns without erros but when I click on button the handler is not called.
    So, I continue testing untill I can run myown apps.
    Attached Thumbnails Attached Thumbnails I Can run QT Apps on MING. Updated again: June, 01 2007-qt04_852.jpg  

  3. #23

    Default

    Quote Originally Posted by dedraks
    Quote Originally Posted by joaorodrigo
    Weel, when we are going to see a working app in QT ?

    Some progress. Bellow is an application derived from ZBaseDialog with two QPushButtons, one QLineEdit and one QComboBox.
    I needed to implement a lot of methods from ZBaseDialog that are pure virtual.
    I can enter any text on QLineEdit and I can select any Item from QComboBox but I can't connect de buttons to a signal handler.
    The QObject::connect() method returns without erros but when I click on button the handler is not called.
    So, I continue testing untill I can run myown apps.
    Great!
    But how can you display strings, when i use QFont, I Just received error like:
    main.o(.text+0x4c): In function `main':
    : undefined reference to `QFont::QFont[in-charge](QString const&, int, int, bool)'
    ....Can you help me? Thanks.

  4. #24
    Join Date
    Jan 2007
    Location
    Belo Horizonte, MG, Brazil
    Posts
    375

    Default

    I'm using the overloaded constructor of the QPushButton.
    Code:
    Class MyDialog : public ZBaseDialog
    {
    ...
    QScrollView *scrollview = new QScrollView( this );
    QPushButton *button = new QPushButton( "Button", scrollview );
    button->move( x, y );
    ...
    } // Class MyDialog
    
    ...
    
    int main(int argc, char **argv)
    {
        ZApplication app( argc, argv );
        MyDialog *myDialog = new MyDialog( );
        myDialog->show( );
        app.showMainWidget( myDialog );
        return app.exec( );
    }

  5. #25

    Default

    Can you show me the source code?

  6. #26
    Join Date
    Apr 2007
    Location
    delhi
    Posts
    567

    Default

    '

    bravo ded.....

    its looking great app.... cool

    .
    "LIfe iS tOo sHorT >
    ...mAkE iT sImpLe..!!"

    ________Gu®neek_

    .

  7. #27
    Join Date
    Jan 2007
    Location
    Belo Horizonte, MG, Brazil
    Posts
    375

    Default

    First topic updated.

  8. #28

    Default

    Thanks for your efforts, waiting for your good news!!

  9. Default which toolchain are you using?

    hello! That is great!

    I think you are using the cross-compile environment that was posted by Phantom8 some time ago, right? Could you Please download it somewhere? I lost my original download, and can't access it now....

    thanks!

  10. Default how to put text on screen

    I finally managed to compile dgenius by using parts from various distributions. It ran nicely!

    Then I wanted to add text on the canvas. I can get text to display, but I can not get it to display in the right place. It always is displayed in the 0,0 corner.

    I think I traced it down to the following problem:
    In qcanvas.h, for the class QCanvasItem, there is a function called move, that puts the text in a certain location. In the file I use, it is defined as
    Code:
    void move(double x, double y);
    and all the values in QCanvasItem are stored as double. I think I managed to confirm that on the phone these are not stored as double, but something smaller - maybe float.

    ------------- Update

    I manage to draw on the canvas using rectangles or lines - these take integer as location. But the function to move something no the canvas, which is called move(), takes two doubles, and has some problems. I think the double format used by the qt library is somehow different. So text, which needs to be moved to a certain place, needs the move() function for location. So there is no problem in drawing lines/rectangles/circles/pixmaps on the canvas, but there is a problem to put text there....

    But I don't know how to proceed from here. How do I modify the library defintions/include files to use floats? Does anyone have a better qcanvas.h that does not use double?


 
+ Reply to Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Help About My Ming. i Cant Run any application.
    By Dominicus in forum A1200 General Chat
    Replies: 7
    Last Post: 06-09-2009, 07:44 AM
  2. How to run 2 or more Java Apps at the same time??
    By amithbm in forum E6 General Chat
    Replies: 3
    Last Post: 01-14-2008, 02:02 AM
  3. Q: How do I create Startup.txt to run Apps at Startup?
    By rn5a in forum A1200 General Chat
    Replies: 2
    Last Post: 12-09-2007, 01:52 PM
  4. Can these apps be modded to run on e6 ?
    By manu1991 in forum E6 General Chat
    Replies: 10
    Last Post: 12-05-2007, 04:57 AM
  5. Apps which run well on the A1200 / Ming
    By mondo in forum A1200 General Chat
    Replies: 1
    Last Post: 04-28-2006, 02:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1