Results 1 to 4 of 4

Thread: QML and QT integeration

  1. #1
    Join Date
    Oct 2010
    Posts
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default QML and QT integeration

    Hi

    Consider I have two QML files named 1.qml and 2.qml.
    1.qml contains aaa,bbb,ccc as text.
    2.qml contains ddd,eee,fff as text.

    I have QT table with columns sno sname
    sno| sname
    ------------
    1| aaa
    ----------
    2| bbb
    ----------
    3| ccc

    Now when user select a row for ex: aaa i am displaying parsing the QML files and diplaying the correspoing QML file using QDeclarative View.

    My Requirement was...... I should display a RED BORDER in the display qml for the selected ID...in this case "aaa" must be in a red box.

    I hope i have cleared mentioned my issue.

    Regards
    Nagesh

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QML and QT integeration

    Quote Originally Posted by nageshvk View Post
    I hope i have cleared mentioned my issue.
    No, not really.

    What are you having problems with? The table view or the declarative view part? What did you already try to solve your problem?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Posts
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QML and QT integeration

    Step1:
    I have a table with few rows .
    sno| sname
    ------------
    1| aaa
    ----------
    2| bbb
    ----------
    3| ccc


    Step2: When user selectes a row (for example "1". "aaa"). I am parsing all the QML files available in my workspace for the selected text. In this case "aaa" since "aaa" row is selected.

    Step3:I am displaying the QML files as thumbnails that are having "aaa" text.

    (My problem starts here)
    Step4: On the thumbnail i need to show "aaa" in a red border/frame/underline/color whihc help the user to easily read when opens it as declarative view.
    How to do that?

    Regards
    Nagesh

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QML and QT integeration

    Write a delegate for your thumbnail view that will display a red border around the item when some condition is met.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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.