×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    37

    is it possible to plug our custom widgets to .ui file?

    hi all,
    is it possible to plug our custom widgets to .ui file?
    i tried with changing the .ui file but it will fire the following error

    In file included from src/home.cpp:3:
    ./ui_home.h:25:22: error: clbutton.h: No such file or directory
    make: *** [build/home.o] Error 1
    make: Target `all' not remade because of errors.

    CLButton is my custom widget

    this is the .ui entry

    <widget class="CLButton" name="cLButtonAddNewEvent">
    <property name="minimumSize">
    <size>
    <width>760</width>
    <height>70</height>
    </size>
    </property>
    <property name="maximumSize">
    <size>
    <width>760</width>
    <height>70</height>
    </size>
    </property>
    <property name="text">
    <string> &amp;Name</string>
    </property>
    <property name="icon">
    <iconset resource="../application.qrc">
    <normaloff>:/images/icon.png</normaloff>:/images/icon.png</iconset>
    </property>
    <property name="iconSize">
    <size>
    <width>52</width>
    <height>49</height>
    </size>
    </property>
    <property name="description">
    <string> Description.</string>
    </property>
    </widget>





    cheers
    ~Wishwa
    Last edited by wishwaa; 2010-05-24 at 13:13.

  2. #2
    Registered User
    Join Date
    Jun 2009
    Posts
    37

    is it possible to plug our custom widgets to .ui file?

    hi all,
    is it possible to plug our custom widgets to .ui file?
    i tried with changing the .ui file but it will fire the following error

    In file included from src/home.cpp:3:
    ./ui_home.h:25:22: error: clbutton.h: No such file or directory
    make: *** [build/home.o] Error 1
    make: Target `all' not remade because of errors.

    CLButton is my custom widget

    this is the .ui entry

    <widget class="CLButton" name="cLButtonAddNewEvent">
    <property name="minimumSize">
    <size>
    <width>760</width>
    <height>70</height>
    </size>
    </property>
    <property name="maximumSize">
    <size>
    <width>760</width>
    <height>70</height>
    </size>
    </property>
    <property name="text">
    <string> &amp;Name</string>
    </property>
    <property name="icon">
    <iconset resource="../application.qrc">
    <normaloff>:/images/icon.png</normaloff>:/images/icon.png</iconset>
    </property>
    <property name="iconSize">
    <size>
    <width>52</width>
    <height>49</height>
    </size>
    </property>
    <property name="description">
    <string> Description.</string>
    </property>
    </widget>




    cheers
    ~Wishwa

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

    Re: is it possible to plug our custom widgets to .ui file?

    Qt Designer documentation contains a section about integration of custom widgets into Qt Designer.
    http://doc.qt.nokia.com/4.6/designer...m-widgets.html

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: is it possible to plug our custom widgets to .ui file?

    And keep in mind that you can do a simple-minded "custom widget" by simply dragging a vanilla QWidget onto the canvas and using "Promote to ..." to change its class. You don't get the pretty picture, but you can place it, size it, and hook up connections.

Similar Threads

  1. PED and signing.
    By IX in forum Symbian
    Replies: 11
    Last Post: 2008-04-21, 01:15
  2. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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