×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    QPixmap::handle() returns 0.

    Hi,

    On my Ubuntu box, QPixmap::handle() returns a non-0 value, from which I can create another QPixmap instance using QPixmap::fromX11Pixmap().

    In Scratchbox, QPixmap::handle() returns 0.

    Should it work?

    Br,
    Johan

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QPixmap::handle() returns 0.

    Quote Originally Posted by jhnwkmn View Post
    Should it work?
    Sure.
    Code:
    #include <QtGui>
    
    int main (int argc, char **argv)
    {
        QApplication::setGraphicsSystem("native");
        QApplication app(argc, argv);
        QPixmap pixmap(100, 100);
        QMainWindow win;
    
        win.show();
        qDebug() << pixmap.handle();
    
        return app.exec();
    }

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: QPixmap::handle() returns 0.

    Quote Originally Posted by divanov View Post
    Sure.
    Code:
        QApplication::setGraphicsSystem("native");
    Thanks, seems like you need to use the native graphics system.

    Br,
    Johan

Similar Threads

  1. VideoControl.getSnapshot(null) returns null-value
    By cipherovski in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2010-01-11, 07:31
  2. Publish&Subscribe problem: RProperty:Set returns KErrPermissionDenied
    By mrtj in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 8
    Last Post: 2008-08-05, 00:43
  3. ExampleClientEngine ...
    By GeKI in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2005-12-16, 07:12
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. AT Command: Nokia 6310i return “Nokia 6310i”, and others returns “Nokia 6310”
    By basti111 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-07-27, 10:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×