Results 1 to 2 of 2

Thread: QPushButton icon & dialog cursor

  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default QPushButton icon & dialog cursor

    Hi, i'm working on an avr32 running qt 4.5.2 and i'm trying to display a button with an icon.
    In qt designer i included the image inside the resources and assign the icon to the button.
    But on the target i can't see the icon on the button, i've also tried to copy the image on the target with no luck.
    Another question, i'm hiding the cursor with:
    Qt Code:
    1. QApplication app(argc, argv);
    2. qApp->setOverrideCursor(Qt::BlankCursor);
    To copy to clipboard, switch view to plain text mode 

    but once my app start i still can see the cursor...as soon as i touch the screen the cursor finally disappear.

    Any hints?

    Thanks
    Andrea

  2. #2
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QPushButton icon & dialog cursor

    I've just found out that qt designer generates this code:
    Qt Code:
    1. QIcon icon;
    2. icon.addFile(QString::fromUtf8(":/images/email_arrow.png"), QSize(), QIcon::Normal, QIcon::Off);
    To copy to clipboard, switch view to plain text mode 

    if i remove ":/" works great.
    How can i tell qt designer to not put :/ before?

Similar Threads

  1. QPushButton - Only show the Icon
    By graciano in forum Newbie
    Replies: 9
    Last Post: 19th September 2009, 21:15
  2. Problems with QPushButton displaying an icon
    By John82 in forum Qt Programming
    Replies: 9
    Last Post: 2nd July 2009, 17:42
  3. Replies: 2
    Last Post: 12th October 2008, 14:42
  4. Stretching Icon in QPushButton
    By dsandber in forum Qt Tools
    Replies: 1
    Last Post: 6th October 2007, 16:51
  5. Replies: 1
    Last Post: 1st February 2007, 17: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.