×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2011
    Posts
    100

    a.ui component in b.cpp

    Hi, I would like to know how I can use a component a.ui in b.cpp instead of a.cpp.
    thank you very much.

  2. #2
    Regular Contributor
    Join Date
    Jul 2011
    Posts
    100

    Re: a.ui component in b.cpp

    How I can use a component in all cpp ui me to do?

  3. #3
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: a.ui component in b.cpp

    QUiLoader loader;

    QFile file(":/forms/calculatorform.ui");
    file.open(QFile::ReadOnly);
    QWidget *formWidget = loader.load(&file, this);
    file.close();

    /0

Similar Threads

  1. How to use ui component ?
    By Niamita in forum [Archived] Beginning Qt
    Replies: 4
    Last Post: 2011-04-26, 19:53
  2. Qml component
    By jamesjara2 in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-04-05, 06:19
  3. Go to next component
    By fightersoft in forum Symbian
    Replies: 5
    Last Post: 2008-09-24, 09:14
  4. Add Component GUI
    By earendil in forum Symbian
    Replies: 2
    Last Post: 2007-03-21, 05:18

Posting Permissions

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